Make sure bin/git is used to parse branch (turn off hub wrapper if present)

This commit is contained in:
Nathan Broadbent
2012-02-01 12:12:10 +08:00
parent 4cf8671a1c
commit 78cc2d46ea

View File

@@ -167,7 +167,7 @@ function _git_index_count() {
# Returns the current git branch (returns nothing if not a git repository)
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
\git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
}
# If the working directory is clean, update the git repository. Otherwise, show changes.