From 2057b039e71a58dff444bfb2c680a9a3e940fd63 Mon Sep 17 00:00:00 2001
From: Philip Offtermatt
Date: Tue, 29 Oct 2024 17:26:07 +0100
Subject: [PATCH] Fix version tag sorting in Makefile
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index c35c0a37..9af086fe 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ CWD := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
# don't override user values
ifeq (,$(VERSION))
- VERSION := $(shell git tag --sort=taggerdate | tail -1)
+ VERSION := $(shell git tag --sort=version:refname | tail -1)
# if VERSION is empty, then populate it with branch's name and raw commit hash
ifeq (,$(VERSION))
VERSION := $(BRANCH)-$(COMMIT)