3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-01-16 23:17:49 +00:00

Merge pull request #817 from tj-actions/chore/fix-error-locating-last-remote-commit-sha

chore: fix error locating last remote commit sha
This commit is contained in:
repo-ranger[bot] 2022-11-18 13:46:28 +00:00 committed by GitHub
commit 8a7336fb6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,6 +158,9 @@ else
# shellcheck disable=SC2086
git fetch -u --progress $EXTRA_ARGS --depth="$INPUT_FETCH_DEPTH" origin +refs/heads/"$TARGET_BRANCH":refs/remotes/origin/"$TARGET_BRANCH"
git branch --track "$TARGET_BRANCH" origin/"$TARGET_BRANCH" 2>/dev/null || true
else
# shellcheck disable=SC2086
git fetch $EXTRA_ARGS -u --progress --depth="$INPUT_FETCH_DEPTH" origin +"$GITHUB_REF":refs/remotes/origin/"$CURRENT_BRANCH"
fi
echo "::debug::Getting HEAD SHA..."