Make pr#238 work for legacy git as well

master
oGre 10 years ago
parent 2d9ec22dd2
commit d6acf1361c
  1. 2
      gitstatus_pre-1.7.10.sh

@ -58,7 +58,7 @@ remote=
upstream=
if [[ -z "$branch" ]]; then
tag=$( git describe --exact-match 2>/dev/null )
tag=$( git describe --branch --exact-match 2>/dev/null )
if [[ -n "$tag" ]]; then
branch="$tag"
else

Loading…
Cancel
Save