From 2be322d62679f384dd7f15fdc1ccf5b675d3954c Mon Sep 17 00:00:00 2001 From: Bruno Wolff III Date: Aug 21 2013 02:44:29 +0000 Subject: Use the higher tag when there are more than one If two or more tags of the right format point point to HEAD, we probably want the later of the two. --- diff --git a/Makefile b/Makefile index ca8011b..853b317 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # Get the version name first by seeing if HEAD is tagged -version := $(shell git tag --points-at HEAD -l '0.*.*' | head -1) +version := $(shell git tag --points-at HEAD -l '0.*.*' | sort -r | head -1) # And if it wasn't use a git hash ifeq ($(version),) version := $(shell git log -1 --abbrev=8 --pretty=git%h)