Explicitly disable printing signatures when running git
authorDaniel Albers <daniel@lbe.rs>
Wed, 3 Jan 2018 00:41:41 +0000 (01:41 +0100)
committerDaniel Albers <daniel@lbe.rs>
Wed, 3 Jan 2018 01:17:41 +0000 (02:17 +0100)
Make sure version parsing doesn't fail when a signed commit is at the tip and
log.showsignature is enabled.

CMakeLists.txt

index 8d9aaae..4d15ebc 100644 (file)
@@ -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