We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9defe5e commit 4e87f42Copy full SHA for 4e87f42
1 file changed
tools/git/hooks/pre-push
@@ -39,7 +39,7 @@
39
remote="$1"
40
41
# Determine the current branch:
42
-GIT_CURRENT_BRANCH=$(git name-rev --name-only HEAD)
+GIT_CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
43
44
# Determine root directory:
45
root=$(git rev-parse --show-toplevel)
0 commit comments