diff --git a/.githooks/pre-push b/.githooks/pre-push index c71bab9..c70773c 100755 --- a/.githooks/pre-push +++ b/.githooks/pre-push @@ -21,6 +21,14 @@ return 1 } +check_submodule_remotes() { + git submodule foreach --quiet " + if ! git remote get-url \"$remote\" > /dev/null 2>&1; then + echo \"Error: submodule '\$name' missing remote '$remote'.\" + exit 1 + fi + " +} if ! read_branches; then echo "Skipping tests: not pushing testing, staging, main, or production." diff --git a/.gitignore b/.gitignore index 8fb06ba..c966ea8 100755 --- a/.gitignore +++ b/.gitignore @@ -79,6 +79,6 @@ !data/.gitkeep .last_tested_commit .last_unit_tested_commit - +.last_successful_prepush_test certs/* test/logs/*