Files
actions-checkout/__test__/verify-submodules-recursive.sh
CI Bot d1d3bc7bab
Check dist / check-dist (push) Successful in 4m34s
CodeQL / Analyze (javascript) (push) Failing after 33m59s
Licensed / Check licenses (push) Successful in 1m34s
Build and Test / build (push) Failing after 1m1s
Build and Test / test (ubuntu-latest) (push) Failing after 36s
Build and Test / test-proxy (push) Failing after 3m17s
Build and Test / test-bypass-proxy (push) Failing after 33s
Build and Test / test-git-container (push) Failing after 6m51s
Build and Test / test-output (push) Failing after 35s
Build and Test / test (macos-latest) (push) Canceled after 0s
Build and Test / test (windows-latest) (push) Canceled after 0s
actions/checkout v4 mirrored
2026-08-06 18:24:33 +03:30

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