From dedb19180bb4ab8570425074752535f37528a480 Mon Sep 17 00:00:00 2001 From: Dan Nguyen Date: Tue, 29 Sep 2015 18:10:16 -0500 Subject: [PATCH] fix issue with parsing ahead/behind --- gitstatus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitstatus.sh b/gitstatus.sh index e30d29e..3343889 100755 --- a/gitstatus.sh +++ b/gitstatus.sh @@ -69,7 +69,7 @@ else if [[ "${#branch_fields[@]}" -eq 1 ]]; then remote="_NO_REMOTE_TRACKING_" else - IFS="[,]" read -ra remote_line <<< "${line[3]}" + IFS="[,]" read -ra remote_line <<< "${branch_fields[1]}" for rline in "${remote_line[@]}"; do if [[ "$rline" == *ahead* ]]; then num_ahead=${rline:6}