Skip to content

Commit

Permalink
chore: fix error locating last remote commit sha
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Nov 18, 2022
1 parent 5b0b92e commit fad01cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions diff-sha.sh
Expand Up @@ -158,6 +158,8 @@ else
# shellcheck disable=SC2086
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
git fetch $EXTRA_ARGS -u --progress --depth="$INPUT_FETCH_DEPTH" origin +"$GITHUB_REF":refs/remotes/origin/"$CURRENT_BRANCH"
fi

echo "::debug::Getting HEAD SHA..."
Expand Down

0 comments on commit fad01cd

Please sign in to comment.