From 6014c3b27889a4476877f96fbf655aa66149b9da Mon Sep 17 00:00:00 2001 From: nojhan Date: Sat, 28 Apr 2012 10:40:33 +0200 Subject: [PATCH] bugfix: no space in branch name --- .bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 8ef6106..7ff5192 100644 --- a/.bashrc +++ b/.bashrc @@ -92,7 +92,7 @@ git_branch() else return 0 fi - echo -e " $gitver" + echo -e "$gitver" } git_branch_color() @@ -104,7 +104,7 @@ git_branch_color() color="" if git diff --quiet 2>/dev/null >&2 ; then - branch=$(git_branch) + branch="$(git_branch)" has_commit=`git rev-list origin/$branch..$branch` if [ "$has_commit" != "" ] ; then color="${yellow}" # some commits to push