From d6acf1361c743dea7c90e90cd742014625a35b7d Mon Sep 17 00:00:00 2001 From: oGre Date: Sat, 26 Mar 2016 07:59:27 +0100 Subject: [PATCH] Make pr#238 work for legacy git as well --- gitstatus_pre-1.7.10.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitstatus_pre-1.7.10.sh b/gitstatus_pre-1.7.10.sh index 29b5911..2ab86d1 100755 --- a/gitstatus_pre-1.7.10.sh +++ b/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