Files
checkout/__test__/verify-submodules-recursive.sh
George Berkshire 524e936cd9
Check dist / check-dist (push) Failing after 1s
CodeQL / Analyze (javascript) (push) Failing after 1s
Licensed / Check licenses (push) Failing after 0s
Build and Test / build (push) Failing after 1s
Build and Test / test (ubuntu-latest) (push) Failing after 1s
Build and Test / test-bypass-proxy (push) Failing after 2s
Build and Test / test-proxy (push) Failing after 22m37s
Build and Test / test (macos-latest) (push) Canceled after 0s
Build and Test / test (windows-latest) (push) Canceled after 0s
Build and Test / test-output (push) Canceled after 0s
Build and Test / test-git-container (push) Canceled after 1h13m23s
mirror actions/checkout @ 11d5960a326750d5838078e36cf38b85af677262
2026-08-16 19:45:24 +08:00

27 lines
739 B
Bash
Executable File

#!/bin/bash
if [ ! -f "./submodules-recursive/regular-file.txt" ]; then
echo "Expected regular file does not exist"
exit 1
fi
if [ ! -f "./submodules-recursive/submodule-level-1/submodule-file.txt" ]; then
echo "Expected submodule file does not exist"
exit 1
fi
if [ ! -f "./submodules-recursive/submodule-level-1/submodule-level-2/nested-submodule-file.txt" ]; then
echo "Expected nested submodule file does not exists"
exit 1
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
if [ "$?" != "0" ]; then
echo "Failed to validate persisted credential"
popd
exit 1
fi
popd