From aa9f5f134e995693633b5dba569d631fc4389624 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 2 Feb 2024 21:34:32 +0100 Subject: Fix wrong version string The `--long` option for `git describe` adds the number of commits since the last release and the Git hash always (even on a release). This is not intended. Removing this option works before and after the first release as expected. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bd8c14e..7633882 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ LICENSE := $(BUILD_DIR)/LICENSE.txt DATE := $(BUILD_DIR)/date.txt VERSION_FILE := $(BUILD_DIR)/version.txt ARTIFACTS_DIR := $(BUILD_DIR)/artifacts -VERSION := $(shell git describe --dirty --long --always) +VERSION := $(shell git describe --dirty --always) TARGET_NAME := soundbox-$(VERSION) VERSIONED_DOC := $(ARTIFACTS_DIR)/$(TARGET_NAME)-documentation.pdf TARGET_DIR := $(ARTIFACTS_DIR)/$(TARGET_NAME) -- cgit v1.2.3-70-g09d2