]> granicus.if.org Git - handbrake/commitdiff
scripts: fix repo-info.sh
authorJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 27 Aug 2015 16:07:12 +0000 (09:07 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 27 Aug 2015 16:07:12 +0000 (09:07 -0700)
It was not working for new tags made on master

scripts/repo-info.sh

index 675a2cf620e60f7da98c9cf503c7b2439d2ce0d9..0e402535d555f510959c86280c5c55fdf243c642 100755 (executable)
@@ -37,11 +37,11 @@ fi
 
 # Retrieve info
 URL=$(${GIT_EXE} config remote.origin.url)
-TAG=$(${GIT_EXE} describe --abbrev=0)
+TAG=$(${GIT_EXE} describe --tags --abbrev=0)
 if [[ ${TAG} ]]; then
     REV=$(${GIT_EXE} rev-list ${TAG}.. --count)
 else
-    TAG=$(${GIT_EXE} describe $(${GIT_EXE} rev-list --tags --max-count=1))
+    TAG=$(${GIT_EXE} describe --tags $(${GIT_EXE} rev-list --tags --max-count=1))
     if [[ ${TAG} ]]; then
         REV=$(${GIT_EXE} rev-list $(${GIT_EXE} merge-base ${TAG} HEAD).. --count)
     else