From 28882975e30202e0f820a477a2345591a8b68b72 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Wed, 11 Jan 2023 09:41:42 -0700 Subject: [PATCH] make: Ensure git hash is 7 characters Specify abbrev so the version string is the same across systems with different values for core.abbrev. Signed-off-by: Tim Crawford --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3b4b52d..bdbe99b 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ all: else # Calculate version DATE=$(shell git show --format="%cd" --date="format:%Y-%m-%d" --no-patch) -REV=$(shell git describe --always --dirty) +REV=$(shell git describe --abbrev=7 --always --dirty) VERSION?=$(DATE)_$(REV) # Set build directory