This commit is contained in:
eric sciple
2025-10-17 16:19:30 +00:00
parent e516cf1d25
commit 7ff04900e4

View File

@@ -17,10 +17,21 @@ fi
echo "Testing persisted credential"
pushd ./submodules-recursive/submodule-level-1/submodule-level-2
git config --local --name-only --get-regexp http.+extraheader && git fetch
# Check if credentials are configured
git config list | grep -q "http.*extraheader"
if [ "$?" != "0" ]; then
echo "Failed to validate persisted credential"
echo "Failed to validate persisted credential - no http extraheader found"
popd
exit 1
fi
# Try to ls-remote to validate credentials work
git ls-remote origin >/dev/null
if [ "$?" != "0" ]; then
echo "Failed to validate persisted credential - git ls-remote failed"
popd
exit 1
fi
popd