Skip to content

Commit

Permalink
Merge pull request #748 from tj-actions/fix/error-finding-merge-base
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Nov 2, 2022
2 parents 58b52f3 + 0643dfe commit 1263363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diff-sha.sh
Expand Up @@ -155,11 +155,11 @@ else
CURRENT_BRANCH=$GITHUB_HEAD_REF

if [[ -z $INPUT_BASE_SHA ]]; then
git fetch --no-tags -u --progress --deepen=30 origin "$TARGET_BRANCH":"$TARGET_BRANCH"
git fetch --no-tags -u --progress --depth=10 origin "$TARGET_BRANCH":"$TARGET_BRANCH"
PREVIOUS_SHA=$GITHUB_EVENT_PULL_REQUEST_BASE_SHA && exit_status=$? || exit_status=$?
echo "::debug::Previous SHA: $PREVIOUS_SHA"
else
git fetch --no-tags -u --progress --deepen=30 origin "$INPUT_BASE_SHA" && exit_status=$? || exit_status=$?
git fetch --no-tags -u --progress --depth=10 origin "$INPUT_BASE_SHA" && exit_status=$? || exit_status=$?
PREVIOUS_SHA=$INPUT_BASE_SHA && exit_status=$? || exit_status=$?
fi

Expand Down

0 comments on commit 1263363

Please sign in to comment.