mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 14:15:45 +08:00
Merge pull request #240 from oranja/alt-git_ahead
bugfix: git_ahead no longer reports 'none' as 'ahead'
This commit is contained in:
commit
35491d3d51
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user