From 96ce8da4f680a4b2aa8292f77b6822205fb89b4a Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Thu, 17 Nov 2022 12:32:34 -0700 Subject: [PATCH] Update diff-sha.sh --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index 79c9cca8..167fe8a4 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -221,7 +221,7 @@ else echo "Fetching $depth commits..." # shellcheck disable=SC2086 - git fetch $EXTRA_ARGS -u --progress --deepen="$depth" + git fetch $EXTRA_ARGS -u --progress --deepen="$depth" origin +"$GITHUB_REF":refs/remotes/origin/"$CURRENT_BRANCH" if [[ $depth -gt $max_depth ]]; then echo "::error::Unable to locate a common ancestor between $TARGET_BRANCH and $CURRENT_SHA"