Skip to content

Commit 4e87f42

Browse files
committed
Update means of determining current branch
1 parent 9defe5e commit 4e87f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/git/hooks/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
remote="$1"
4040

4141
# Determine the current branch:
42-
GIT_CURRENT_BRANCH=$(git name-rev --name-only HEAD)
42+
GIT_CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
4343

4444
# Determine root directory:
4545
root=$(git rev-parse --show-toplevel)

0 commit comments

Comments
 (0)