From bf097488b75dd27f261668397677aaa288115e21 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 18 Nov 2022 06:28:49 -0700 Subject: [PATCH] Update diff-sha.sh --- diff-sha.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/diff-sha.sh b/diff-sha.sh index ebfb22a2..303cb7b4 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -159,6 +159,7 @@ else git fetch -u --progress $EXTRA_ARGS --depth="$INPUT_FETCH_DEPTH" origin +refs/heads/"$TARGET_BRANCH":refs/remotes/origin/"$TARGET_BRANCH" git branch --track "$TARGET_BRANCH" origin/"$TARGET_BRANCH" 2>/dev/null || true else + # shellcheck disable=SC2086 git fetch $EXTRA_ARGS -u --progress --depth="$INPUT_FETCH_DEPTH" origin +"$GITHUB_REF":refs/remotes/origin/"$CURRENT_BRANCH" fi