3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-01-16 13:56:45 +00:00

Update diff-sha.sh

This commit is contained in:
Tonye Jack 2022-12-16 10:40:19 -07:00 committed by GitHub
parent 6114375387
commit 550a972358
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
set -euxo pipefail
INITIAL_COMMIT="false"
GITHUB_OUTPUT=${GITHUB_OUTPUT:-""}
@ -261,7 +261,7 @@ else
fi
# shellcheck disable=SC2086
git fetch $EXTRA_ARGS -u --progress --deepen="$i" origin $TARGET_BRANCH $CURRENT_SHA 1>/dev/null 2>&1
git fetch $EXTRA_ARGS -u --progress --deepen="$i" origin $TARGET_BRANCH $CURRENT_SHA 1>/dev/null 2>&1 || true
done
if ((i >= max_depth)); then