diff --git a/contrib/semver/name.sh b/contrib/semver/name.sh index 82527596..eea8ee4b 100644 --- a/contrib/semver/name.sh +++ b/contrib/semver/name.sh @@ -1,7 +1,7 @@ #!/bin/sh # Get the branch name -BRANCH=$(git name-rev --name-only HEAD 2>/dev/null) +BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null) # Check if the branch name is not master if [ "$BRANCH" = "master" ]; then