bugfix: git_ahead no longer reports 'none' as 'ahead'

This commit is contained in:
Itzik Ephraim 2016-01-19 19:00:21 +02:00
parent fd40ddb033
commit e83b674fd3

View File

@ -7,7 +7,7 @@ function git_ahead -a ahead behind diverged none
case ""
# no upstream
case "0"\t"0"
test -z "$ahead"; and echo "$ahead"
test -z "$none"; and echo "$none"
or echo ""
case "*"\t"0"
test -z "$behind"; and echo "$behind"