From 9f3c810bffb5f439bcbb5370c836ed5133d32220 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Fri, 17 Oct 2025 16:01:08 +0000 Subject: [PATCH] . --- __test__/verify-submodules-true.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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