summaryrefslogtreecommitdiffstats
path: root/scripts/repo-info.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/repo-info.sh')
-rwxr-xr-xscripts/repo-info.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/repo-info.sh b/scripts/repo-info.sh
index 675a2cf62..0e402535d 100755
--- a/scripts/repo-info.sh
+++ b/scripts/repo-info.sh
@@ -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