This commit is contained in:
eric sciple
2025-10-17 16:01:08 +00:00
parent 927b503c46
commit 9f3c810bff

View File

@@ -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