From 78cc2d46ea2e65eb51243917e650a348782e0b66 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Wed, 1 Feb 2012 12:12:10 +0800 Subject: [PATCH] Make sure bin/git is used to parse branch (turn off hub wrapper if present) --- lib/git/repo_index.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/repo_index.sh b/lib/git/repo_index.sh index 1e14b0e..1589ad2 100644 --- a/lib/git/repo_index.sh +++ b/lib/git/repo_index.sh @@ -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.