Fix issue where _NO_REMOTE_TRACKING_ doesn't show up when there is no remote branch

master
Dan Nguyen 10 years ago
parent b9d720905c
commit 3a9239d227
  1. 4
      gitstatus.sh

@ -50,6 +50,10 @@ branch_line=`echo "$gitstatus" | grep "^##"`
IFS="." read -ra line <<< "${branch_line/\#\# }"
branch="${line[0]}"
if [[ "${#line[@]}" -eq 1 ]]; then
remote="_NO_REMOTE_TRACKING_"
fi
if [[ -z "$branch" ]]; then
tag=`git describe --exact-match`
if [[ -n "$tag" ]]; then

Loading…
Cancel
Save