From 72a4c8c7fe64c4b784dc5664e406f0f8cd0126cd Mon Sep 17 00:00:00 2001 From: JuanPablo Date: Sun, 26 Jun 2011 22:10:49 -0400 Subject: remote origin o --- git-prompt.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/git-prompt.sh b/git-prompt.sh index 781c62e..2b2869b 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -526,11 +526,7 @@ parse_git_status() { if [[ $(git branch -a | grep $remote) != "" ]]; then nRemoteCommit=$(git log --oneline HEAD..$remote/master | wc -l) if [[ -f $git_dir/FETCH_HEAD && $nRemoteCommit != "0" ]]; then - if [[ $remote == "origin" ]]; then - remotes+=" o:"$nRemoteCommit - else - remotes+=" "$remote:$nRemoteCommit - fi + remotes+=" "${remote/origin/o}:$nRemoteCommit fi else git fetch $remote >& /dev/null & -- cgit v1.2.3