Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Sep 25, 2022
1 parent ef1134d commit 05f9744
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions diff-sha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ if [[ -z $GITHUB_BASE_REF ]]; then
if [[ -z "$PREVIOUS_SHA" || "$PREVIOUS_SHA" == "0000000000000000000000000000000000000000" ]]; then
PREVIOUS_SHA=$(git rev-parse "$(git branch -r --sort=-committerdate | head -1)")
fi
if [[ "$INPUT_SHA" == "$PREVIOUS_SHA" ]]; then
PREVIOUS_SHA=$(git rev-parse "$INPUT_SHA^1")
fi

if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then
INITIAL_COMMIT="true"
Expand Down

0 comments on commit 05f9744

Please sign in to comment.