From e83b674fd38777367d9cc37871bb45c72525a2c1 Mon Sep 17 00:00:00 2001
From: Itzik Ephraim <oranja@gmail.com>
Date: Tue, 19 Jan 2016 19:00:21 +0200
Subject: [PATCH] bugfix: git_ahead no longer reports 'none' as 'ahead'

---
 lib/git/git_ahead.fish | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/git/git_ahead.fish b/lib/git/git_ahead.fish
index 16aa924..e368cd8 100644
--- a/lib/git/git_ahead.fish
+++ b/lib/git/git_ahead.fish
@@ -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"
-- 
GitLab