From 64ed54b54f8efe6a0fd350cfc43970eba90a4a57 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Wed, 7 Jun 2017 14:35:59 +0200 Subject: Fix version / sub-version retrieval. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2f7ad2d..615be53 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,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