Skip to content

Commit

Permalink
scripts: fix repo-info.sh
Browse files Browse the repository at this point in the history
It was not working for new tags made on master
  • Loading branch information
jstebbins committed Aug 27, 2015
1 parent 01e1f16 commit 4fb5fbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/repo-info.sh
Expand Up @@ -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
Expand Down

0 comments on commit 4fb5fbd

Please sign in to comment.