mirror of
https://github.com/tj-actions/changed-files
synced 2024-12-17 13:47:20 +00:00
fix: pulling current branch history
This commit is contained in:
parent
61e93c8aeb
commit
fe47f7dc4c
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ else
|
||||||
echo "Fetching $depth commits..."
|
echo "Fetching $depth commits..."
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
git fetch $EXTRA_ARGS --deepen="$depth" origin "$TARGET_BRANCH" "$CURRENT_SHA";
|
git fetch -u --progress $EXTRA_ARGS --deepen="$depth" origin +refs/heads/"$CURRENT_BRANCH":refs/remotes/origin/"$CURRENT_BRANCH"
|
||||||
|
|
||||||
if [[ $depth -gt $max_depth ]]; then
|
if [[ $depth -gt $max_depth ]]; then
|
||||||
echo "::error::Unable to locate a common ancestor between $TARGET_BRANCH and $CURRENT_SHA"
|
echo "::error::Unable to locate a common ancestor between $TARGET_BRANCH and $CURRENT_SHA"
|
||||||
|
|
Loading…
Reference in a new issue