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:
parent
c1b58174f0
commit
41bac1e2f7
1 changed files with 2 additions and 2 deletions
|
@ -249,8 +249,6 @@ else
|
||||||
if git diff --name-only --ignore-submodules=all "$PREVIOUS_SHA$DIFF$CURRENT_SHA" 1>/dev/null 2>&1; then
|
if git diff --name-only --ignore-submodules=all "$PREVIOUS_SHA$DIFF$CURRENT_SHA" 1>/dev/null 2>&1; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Fetching $i commits..."
|
|
||||||
|
|
||||||
if [[ -z "$INPUT_BASE_SHA" ]]; then
|
if [[ -z "$INPUT_BASE_SHA" ]]; then
|
||||||
NEW_PREVIOUS_SHA=$(git merge-base --fork-point "$TARGET_BRANCH" "$CURRENT_SHA")
|
NEW_PREVIOUS_SHA=$(git merge-base --fork-point "$TARGET_BRANCH" "$CURRENT_SHA")
|
||||||
|
@ -260,6 +258,8 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Fetching $i commits..."
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
git fetch $EXTRA_ARGS -u --progress --deepen="$i" origin $TARGET_BRANCH $CURRENT_SHA 1>/dev/null 2>&1 || true
|
git fetch $EXTRA_ARGS -u --progress --deepen="$i" origin $TARGET_BRANCH $CURRENT_SHA 1>/dev/null 2>&1 || true
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue