From 53f2a0c56e9604b8ac5cff73e62fc387c4676365 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Thu, 15 Jun 2017 00:56:09 +0200 Subject: Fix sub version setting --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ca04632..22b954a 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ SYNCTHING_INOTIFY_VERSION = master # Retrieve git tag/commit to set sub-version string ifeq ($(origin SUB_VERSION), undefined) - SUB_VERSION := $(shell git describe --tags 2>/dev/null | sed 's/^v//') + SUB_VERSION := $(shell git describe --exact-match --tags 2>/dev/null | sed 's/^v//') ifneq ($(SUB_VERSION), ) VERSION := $(firstword $(subst -, ,$(SUB_VERSION))) SUB_VERSION := $(word 2,$(subst -, ,$(SUB_VERSION))) -- cgit 1.2.3-korg