Skip to content

Commit

Permalink
fix: error retrieving base sha. (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Aug 15, 2022
1 parent 8cd034b commit 58ae566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff-sha.sh
Expand Up @@ -103,7 +103,7 @@ else
echo "::debug::Previous SHA: $PREVIOUS_SHA"
fi
else
git fetch --no-tags -u --progress origin --depth=1 "$INPUT_BASE_SHA"; exit_status=$?
git fetch --no-tags -u --progress origin --depth=1 "$(git rev-parse --verify "$INPUT_BASE_SHA")"; exit_status=$?
PREVIOUS_SHA=$INPUT_BASE_SHA
TARGET_BRANCH=$(git name-rev --name-only "$PREVIOUS_SHA" 2>&1); exit_status=$?
echo "::debug::Previous SHA: $PREVIOUS_SHA"
Expand Down

0 comments on commit 58ae566

Please sign in to comment.