From f5e886406bd6ac54695947891156e37dae314a37 Mon Sep 17 00:00:00 2001 From: Jose Lombera Date: Thu, 14 Jul 2022 16:45:19 -0500 Subject: [PATCH] mk: compute version deterministically Ensure abbreviated commit id of fixed length in computed version regardless of user's configuration. Choose length 12 as safe value. Link: https://github.com/git/git/commit/dce96489162b Signed-off-by: Jose Lombera Acked-by: Moritz Poldrack Acked-by: Robin Jarry --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9d43e9b..66dc156 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ .SUFFIXES: .SUFFIXES: .1 .5 .7 .1.scd .5.scd .7.scd -VERSION!=git describe --long --tags --dirty 2>/dev/null || echo 0.11.0 +VERSION!=git describe --long --abbrev=12 --tags --dirty 2>/dev/null || echo 0.11.0 VPATH=doc PREFIX?=/usr/local BINDIR?=$(PREFIX)/bin