From c5cac48f4d85c012a76861450067019db518c4f1 Mon Sep 17 00:00:00 2001 From: oGre Date: Fri, 25 Sep 2015 12:59:48 +0200 Subject: [PATCH] Initial commit on is always a local state - set no remote tracking --- gitstatus.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/gitstatus.sh b/gitstatus.sh index fc48cf7..7782e62 100755 --- a/gitstatus.sh +++ b/gitstatus.sh @@ -59,6 +59,7 @@ branch="${line[0]}" if [[ "$branch" == *"Initial commit on"* ]]; then IFS=" " read -ra branch_line <<< "$branch" branch=${branch_line[-1]} + remote="_NO_REMOTE_TRACKING_" elif [[ "$branch" == *"no branch"* ]]; then tag=$( git describe --exact-match ) if [[ -n "$tag" ]]; then