From c4f49c96d721836b6f14227cc6a6baedfe305d91 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Sun, 12 Aug 2012 21:32:05 +1200 Subject: [PATCH] Use escaped git function, so it doesn't go through any aliases like hub --- lib/git/repo_index.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/git/repo_index.sh b/lib/git/repo_index.sh index d28717f..57d4add 100644 --- a/lib/git/repo_index.sh +++ b/lib/git/repo_index.sh @@ -167,10 +167,10 @@ function _git_index_count() { # Returns the current git branch (returns nothing if not a git repository) function is_git_dirty { - [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" + [[ $(\git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" } function parse_git_branch { - git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(is_git_dirty)]/" + \git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1/" } # If the working directory is clean, update the git repository. Otherwise, show changes.