Skip to content

Commit b274ea6

Browse files
committed
Change current_branch for old git versions support
1 parent c134fe2 commit b274ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-fire

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ version() {
1111

1212
# Helpers.
1313
current_branch() {
14-
git symbolic-ref --short HEAD
14+
basename $(git symbolic-ref HEAD)
1515
}
1616

1717
current_epoch() {

0 commit comments

Comments
 (0)