Skip to content

Commit

Permalink
Fixes git pre-check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
BenParizek committed Sep 16, 2023
1 parent d570059 commit f1c7017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .githooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# Script to be run as part of the github pre-push hook.

# create a of the git tags being pushed
TAGS_PREFIXED_WITH_V=$(git tag -l | grep -E ^4)
TAGS_PREFIXED_WITH_V=$(git tag -l | grep -E ^v)

if [ -n "$TAGS_PREFIXED_WITH_V" ]; then
echo "A tag incorrectly starts with 'v'."
echo $TAGS_PREFIXED_WITH_V;
exit 1
fi
fi

0 comments on commit f1c7017

Please sign in to comment.