diff --git a/gitnow-common b/gitnow-common index 3b7bd3e..3ab778a 100644 --- a/gitnow-common +++ b/gitnow-common @@ -37,7 +37,7 @@ git_remote_branches() { git branch -r --no-color | sed 's/^[* ] //'; } git_all_branches() { ( git branch --no-color; git branch -r --no-color) | sed 's/^[* ] //'; } git_current_branch() { - git branch -l | grep "*" | cut -d " " -f 2 + git rev-parse --abbrev-ref HEAD } git_now_first_commit() {