diff --git a/.githooks/pre-push b/.githooks/pre-push index 434437c1..8d4f51a6 100755 --- a/.githooks/pre-push +++ b/.githooks/pre-push @@ -42,7 +42,7 @@ verify_tag_signed() { while read local_ref local_oid remote_ref remote_oid; do # Check some things if we're pushing a branch called "release/" if echo "$remote_ref" | grep ^refs\/heads\/release\/ &> /dev/null ; then - version=$(echo $remote_ref | awk -F/ '{print $NF}') + version=$(git tag --points-at HEAD) echo "Looks like you're trying to push a $version release..." echo "Making sure you've signed and tagged it." if verify_commit_signed && verify_tag && verify_tag_signed ; then