diff options
author | John Stebbins <[email protected]> | 2015-08-27 09:07:12 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2015-08-27 09:07:12 -0700 |
commit | 4fb5fbdced7faceaf4b24bd1b1f08cc127200ed8 (patch) | |
tree | 22a6061e77a51e57aaca6d7c1be861a525b116d2 /scripts | |
parent | 01e1f1670cef75cb2fa45e975462082891ef7e3a (diff) |
scripts: fix repo-info.sh
It was not working for new tags made on master
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/repo-info.sh | 4 |
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 |