Fix to work with multiple tags

If there are multiple tags pointing to HEAD we need to pick only
one. We'll take one that seems to be a version number. This allows
the version number tag to coexist with another tag, that perhaps
indicates which images it was used to build.
This commit is contained in:
Bruno Wolff III 2013-06-29 22:08:06 -05:00
parent 247595b762
commit 0ecefe0230
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
# Get the version name first by seeing if HEAD is tagged
version := $(shell git tag --points-at HEAD)
version := $(shell git tag --points-at HEAD -l '0.*.*' | head -1)
# And if it wasn't use a git hash
ifeq ($(version),)
version := $(shell git log -1 --abbrev=8 --pretty=git%h)