diff options
-rwxr-xr-x | git-prompt.sh | 6 |
1 files changed, 1 insertions, 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 & |