Initial commit on is always a local state - set no remote tracking

master
oGre 10 years ago
parent b989b7f324
commit c5cac48f4d
  1. 1
      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

Loading…
Cancel
Save