Description: Do not override git-hash.txt with an empty string if we have a release tarball
Author: Sébastien Noel <sebastien@twolife.be>
Forwarded: not-needed
--- a/cmake/CheckGit.cmake
+++ b/cmake/CheckGit.cmake
@@ -1,5 +1,5 @@
 # In case Git is not available, default is empty string
-set(GIT_HASH "")
+set(D3_GIT_HASH "")
 
 find_package(Git QUIET)
 if(GIT_FOUND)
@@ -9,6 +9,8 @@
     OUTPUT_STRIP_TRAILING_WHITESPACE
     ERROR_QUIET
   )
+endif()
+if(NOT D3_GIT_HASH STREQUAL "")
   file(WRITE ${SOURCE_DIR}/git-hash.txt ${D3_GIT_HASH})
 else()
   # Try to read pregenerated file with commit hash on it (archive version of repository)

