mirror of
https://github.com/actions/checkout.git
synced 2025-11-05 11:58:20 +08:00
.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -o pipefail
|
||||
|
||||
if [ ! -f "./submodules-true/regular-file.txt" ]; then
|
||||
echo "Expected regular file does not exist"
|
||||
@@ -28,7 +27,7 @@ if [ "$?" != "0" ]; then
|
||||
fi
|
||||
|
||||
# Try to ls-remote to validate credentials work
|
||||
git ls-remote origin 2>&1 | head
|
||||
git ls-remote origin >/dev/null
|
||||
if [ "$?" != "0" ]; then
|
||||
echo "Failed to validate persisted credential - git ls-remote failed"
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user