Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Oct 31, 2022
1 parent 3e2fd5f commit 3951876
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions diff-sha.sh
Expand Up @@ -115,9 +115,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then
fi

if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then
PARENT_COUNT=$(git show -s --format="%P" "$CURRENT_SHA" | wc -w | xargs)

if [[ "$PARENT_COUNT" == "0" ]]; then
if ! git rev-parse "$PREVIOUS_SHA^1" &>/dev/null; then
INITIAL_COMMIT="true"
PREVIOUS_SHA=$(git rev-parse "$CURRENT_SHA")
echo "::warning::Initial commit detected no previous commit found."
Expand Down

0 comments on commit 3951876

Please sign in to comment.