Merge pull request #238 from matt-smiley/master

Show an unannotated tag too
master
Martin Gondermann 10 years ago
commit a6d32f0d11
  1. 2
      gitstatus.sh

@ -60,7 +60,7 @@ if [[ "$branch" == *"Initial commit on"* ]]; then
branch="${fields[3]}" branch="${fields[3]}"
remote="_NO_REMOTE_TRACKING_" remote="_NO_REMOTE_TRACKING_"
elif [[ "$branch" == *"no branch"* ]]; then elif [[ "$branch" == *"no branch"* ]]; then
tag=$( git describe --exact-match ) tag=$( git describe --tags --exact-match )
if [[ -n "$tag" ]]; then if [[ -n "$tag" ]]; then
branch="$tag" branch="$tag"
else else

Loading…
Cancel
Save