diff --git a/__test__/verify-submodules-true.sh b/__test__/verify-submodules-true.sh index 743e59b..d516a3f 100755 --- a/__test__/verify-submodules-true.sh +++ b/__test__/verify-submodules-true.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -o pipefail if [ ! -f "./submodules-true/regular-file.txt" ]; then echo "Expected regular file does not exist" @@ -19,7 +20,7 @@ echo "Testing persisted credential" pushd ./submodules-true/submodule-level-1 # Check if credentials are configured -git config --list | grep -q "http.*extraheader" +git config list | grep -q "http.*extraheader" if [ "$?" != "0" ]; then echo "Failed to validate persisted credential - no http extraheader found" popd @@ -27,7 +28,7 @@ if [ "$?" != "0" ]; then fi # Try to ls-remote to validate credentials work -git ls-remote origin +git ls-remote origin | head if [ "$?" != "0" ]; then echo "Failed to validate persisted credential - git ls-remote failed" popd