From 41bac1e2f746c759e06c15d5d7f6b63e7229b481 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 16 Dec 2022 10:53:13 -0700 Subject: [PATCH] Update diff-sha.sh --- diff-sha.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diff-sha.sh b/diff-sha.sh index d19c5173..3da404aa 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -249,8 +249,6 @@ else if git diff --name-only --ignore-submodules=all "$PREVIOUS_SHA$DIFF$CURRENT_SHA" 1>/dev/null 2>&1; then break fi - - echo "Fetching $i commits..." if [[ -z "$INPUT_BASE_SHA" ]]; then NEW_PREVIOUS_SHA=$(git merge-base --fork-point "$TARGET_BRANCH" "$CURRENT_SHA") @@ -260,6 +258,8 @@ else fi fi + echo "Fetching $i commits..." + # shellcheck disable=SC2086 git fetch $EXTRA_ARGS -u --progress --deepen="$i" origin $TARGET_BRANCH $CURRENT_SHA 1>/dev/null 2>&1 || true done