From 738f5436bbc9a8c761a487ae24da65fd74a62ef9 Mon Sep 17 00:00:00 2001 From: Daniel Albers Date: Wed, 3 Jan 2018 01:41:41 +0100 Subject: [PATCH] Explicitly disable printing signatures when running git Make sure version parsing doesn't fail when a signed commit is at the tip and log.showsignature is enabled. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d9aaaec..4d15ebc2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -656,7 +656,7 @@ git_describe(GIT_DESCRIBE --long) # If in a Git repo we can get the commit-date from a git command if (GIT_HEAD) execute_process( - COMMAND git show -s --format=%ct + COMMAND git -c log.showsignature=false show -s --format=%ct WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} OUTPUT_VARIABLE GIT_COMMIT_DATE OUTPUT_STRIP_TRAILING_WHITESPACE -- 2.20.1