bugfix: no space in branch name
This commit is contained in:
parent
f10a421d3f
commit
6014c3b278
1 changed files with 2 additions and 2 deletions
2
.bashrc
2
.bashrc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue