gitinfo: fix current branch parsing.
This commit is contained in:
parent
297f6d82ed
commit
158a492a8e
@ -69,7 +69,7 @@ function gitinfo_get_branch()
|
||||
GITINFO_BRANCH=""
|
||||
return 1
|
||||
fi
|
||||
GITINFO_BRANCH=`git branch | cut -d " " -f 2`
|
||||
GITINFO_BRANCH=`git branch | grep "*" | cut -d " " -f 2`
|
||||
}
|
||||
|
||||
######################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user