From 7ff04900e410bffeff04146ac801c530c0ffb930 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Fri, 17 Oct 2025 16:19:30 +0000 Subject: [PATCH] . --- __test__/verify-submodules-recursive.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/__test__/verify-submodules-recursive.sh b/__test__/verify-submodules-recursive.sh index 1b68f9b..cf249b6 100755 --- a/__test__/verify-submodules-recursive.sh +++ b/__test__/verify-submodules-recursive.sh @@ -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