bugfix: no space in branch name

This commit is contained in:
nojhan 2012-04-28 10:40:33 +02:00
commit 6014c3b278

View file

@ -104,7 +104,7 @@ git_branch_color()
color="" color=""
if git diff --quiet 2>/dev/null >&2 ; then if git diff --quiet 2>/dev/null >&2 ; then
branch=$(git_branch) branch="$(git_branch)"
has_commit=`git rev-list origin/$branch..$branch` has_commit=`git rev-list origin/$branch..$branch`
if [ "$has_commit" != "" ] ; then if [ "$has_commit" != "" ] ; then
color="${yellow}" # some commits to push color="${yellow}" # some commits to push