From 1fded3f7bf46333e77e470cc160905355cfab00d Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Fri, 7 Jul 2023 23:16:29 -0600 Subject: [PATCH] Use `%cs` format when getting the commit date From the man page: %cs committer date, short format (YYYY-MM-DD) This is identical to what we use, without having to specify a custom date format for it. Signed-off-by: Tim Crawford --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d37f620..149918a 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ all: @exit 1 else # Calculate version -DATE=$(shell git show --format="%cd" --date="format:%Y-%m-%d" --no-patch --no-show-signature) +DATE=$(shell git show --format="%cs" --no-patch --no-show-signature) REV=$(shell git describe --abbrev=7 --always --dirty) VERSION?=$(DATE)_$(REV)