From e565762aa8fe6befd352b05c6925f3abe2463dc6 Mon Sep 17 00:00:00 2001 From: Darren Kelly <107671032+darrenvechain@users.noreply.github.com> Date: Thu, 6 Jun 2024 07:55:21 +0100 Subject: [PATCH] fix: tag returns 2 results when latest RC equals official release (#768) --- 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)