From 3b10cebd3dfde60872124e155e6072beee48cb44 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 16 Nov 2022 21:06:22 -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 bbcca9cd..9ddfb9c0 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -215,7 +215,7 @@ else echo "Fetching $depth commits..." # shellcheck disable=SC2086 - git fetch -u --progress $EXTRA_ARGS --deepen="$depth" origin +refs/heads/"$CURRENT_BRANCH":refs/remotes/origin/"$CURRENT_BRANCH" + git fetch -u --progress $EXTRA_ARGS --depth="$depth" origin +refs/heads/"$CURRENT_BRANCH":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"