From 606388df395f6ac166c23e1871cbadffc474b4e3 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 e1e395d..57a8afd 100755 --- a/gitstatus.sh +++ b/gitstatus.sh @@ -79,7 +79,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