Skip to content

Commit efee641

Browse files
committed
Use symbolic-ref to get the branch name
1 parent 4b8b630 commit efee641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ then
1212
IGNORED_BRANCHES=( ${IGNORED_BRANCHES[@]} ${BRANCHES[@]} )
1313
fi
1414

15-
CURRENT_BRANCH_CMD="git rev-parse --abbrev-ref HEAD"
15+
CURRENT_BRANCH_CMD="git symbolic-ref --short HEAD"
1616
CURRENT_BRANCH=$(eval $CURRENT_BRANCH_CMD)
1717

1818
COMMIT_WITH_BRANCH="git commit -m \"$CURRENT_BRANCH: $1\""

0 commit comments

Comments
 (0)