From 01f5402c7713ee784f038d1705d26563f6b958f9 Mon Sep 17 00:00:00 2001 From: Dan Nguyen Date: Wed, 23 Sep 2015 20:05:13 -0500 Subject: [PATCH] Fix behind parsing --- gitstatus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitstatus.sh b/gitstatus.sh index df90245..a834f91 100755 --- a/gitstatus.sh +++ b/gitstatus.sh @@ -73,7 +73,7 @@ else remote="${remote}_AHEAD_${num_ahead}" fi if [[ "${remote_line[1]}" == *behind* ]]; then - num_behind=${remote_line[1]:8} + num_behind=${remote_line[1]:7} remote="${remote}_BEHIND_${num_behind}" fi fi