gitinfo: fix current branch parsing.

This commit is contained in:
Stanislav Nikitin 2015-12-26 17:28:20 +05:00
parent 297f6d82ed
commit 158a492a8e
1 changed files with 1 additions and 1 deletions

View File

@ -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`
}
######################################################################