Przeglądaj źródła

ensure that GitVersion fits into 32 bits

Martin Jeřábek 6 lat temu
rodzic
commit
a916c7b1e3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -170,7 +170,7 @@ IF(NOT IGNORE_GIT_HASH)
 
   # Get the latest abbreviated commit hash of the working branch
   EXECUTE_PROCESS(
-    COMMAND git log -1 --format=%h --no-show-signature
+    COMMAND git rev-parse --short=8 HEAD
     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
     OUTPUT_VARIABLE GIT_COMMIT_HASH
     OUTPUT_STRIP_TRAILING_WHITESPACE