diff --git a/diff-sha.sh b/diff-sha.sh index 4104daef..417ed52c 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -134,7 +134,7 @@ else CURRENT_BRANCH=$GITHUB_HEAD_REF echo "Fetching remote refs..." - git fetch --no-tags -u --progress --deepen=40000 + git fetch --no-tags -u --progress --deepen=40000 origin "$CURRENT_BRANCH":"$CURRENT_BRANCH" git fetch --no-tags -u --progress --depth="$INPUT_FETCH_DEPTH" origin "$TARGET_BRANCH":"$TARGET_BRANCH" echo "::debug::Getting HEAD SHA..."