This commit is contained in:
eric sciple
2025-10-17 15:53:40 +00:00
parent 013dcb49b4
commit 927b503c46

View File

@@ -17,10 +17,21 @@ fi
echo "Testing persisted credential" echo "Testing persisted credential"
pushd ./submodules-true/submodule-level-1 pushd ./submodules-true/submodule-level-1
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 if [ "$?" != "0" ]; then
echo "Failed to validate persisted credential" echo "Failed to validate persisted credential - no http extraheader found"
popd popd
exit 1 exit 1
fi fi
# Try to ls-remote to validate credentials work
git ls-remote origin
if [ "$?" != "0" ]; then
echo "Failed to validate persisted credential - git ls-remote failed"
popd
exit 1
fi
popd popd