From e6fbdde201eb744799156ce81b7f53d3e1257ed7 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 5 Dec 2022 14:38:37 -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 40de9266..01b41458 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -70,7 +70,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then else CURRENT_SHA=$INPUT_SHA; exit_status=$? # shellcheck disable=SC2086 - git fetch $EXTRA_ARGS -u --progress --depth="$INPUT_FETCH_DEPTH" origin +"$GITHUB_REF":refs/remotes/origin/"$CURRENT_BRANCH" 2>&1 && exit_status=$? || exit_status=$? + git fetch $EXTRA_ARGS -u --progress --deepen="$INPUT_FETCH_DEPTH" origin +"$GITHUB_REF":refs/remotes/origin/"$CURRENT_BRANCH" 2>&1 && exit_status=$? || exit_status=$? fi fi @@ -133,7 +133,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then else PREVIOUS_SHA=$INPUT_BASE_SHA # shellcheck disable=SC2086 - git fetch $EXTRA_ARGS -u --progress --depth="$INPUT_FETCH_DEPTH" origin +"$GITHUB_REF":refs/remotes/origin/"$CURRENT_BRANCH" 2>&1 && exit_status=$? || exit_status=$? + git fetch $EXTRA_ARGS -u --progress --deepen="$INPUT_FETCH_DEPTH" origin +"$GITHUB_REF":refs/remotes/origin/"$CURRENT_BRANCH" 2>&1 && exit_status=$? || exit_status=$? fi echo "::debug::Target branch $TARGET_BRANCH..."