Merge pull request #154 from chandrasing/master

[Local Branch Indicator] Change case from No upstream to no upstream
master
Martin Gondermann 10 years ago
commit fd235fce66
  1. 2
      gitstatus.sh

@ -78,7 +78,7 @@ else
# detect if the local branch have a remote tracking branch # detect if the local branch have a remote tracking branch
cmd_output=$(git rev-parse --abbrev-ref ${branch}@{upstream} 2>&1 >/dev/null) cmd_output=$(git rev-parse --abbrev-ref ${branch}@{upstream} 2>&1 >/dev/null)
if [ `count_lines "$cmd_output" "fatal: No upstream"` == 1 ] ; then if [ `count_lines "$cmd_output" "fatal: no upstream"` == 1 ] ; then
has_remote_tracking=0 has_remote_tracking=0
else else
has_remote_tracking=1 has_remote_tracking=1

Loading…
Cancel
Save