From 43add15f8c485a8134b6a1e30f769c83d7b4c31c Mon Sep 17 00:00:00 2001 From: Darren Kelly Date: Wed, 5 Jun 2024 13:57:48 +0100 Subject: [PATCH] fix: tag returns 2 results when latest RC equals official release --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6d344245c..62419c23d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ PACKAGE = github.com/vechain/thor GIT_COMMIT = $(shell git --no-pager log --pretty="%h" -n 1) -GIT_TAG = $(shell git tag -l --points-at HEAD) +GIT_TAG = $(shell git tag -l --points-at HEAD | head -n 1) COPYRIGHT_YEAR = $(shell git --no-pager log -1 --format=%ad --date=format:%Y) THOR_VERSION = $(shell cat cmd/thor/VERSION) DISCO_VERSION = $(shell cat cmd/disco/VERSION)