Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-12-19 14:47:25 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-12-19 14:56:32 +0300
commit593ed1347c96aea691eb503a6bbed12c801f3faa (patch)
tree7901fd69e4d44d1dab16a067eae3267268d0b77f /build_files/cmake/packaging.cmake
parent684898cfbf0e2c658e0c5c6fd564668ef791feee (diff)
Build info: Ensure hash length is same across all platforms and has no conflicts
The original issue was that different platforms will use different hash lengths, just because defaults on Git client were different. Now we use explicit length for the hash, and length is the same as is used for short hashes in Linux -- apparently they started to have collisions with length of 11.
Diffstat (limited to 'build_files/cmake/packaging.cmake')
-rw-r--r--build_files/cmake/packaging.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_files/cmake/packaging.cmake b/build_files/cmake/packaging.cmake
index 2408e4eaff9..fb69a7c726a 100644
--- a/build_files/cmake/packaging.cmake
+++ b/build_files/cmake/packaging.cmake
@@ -26,7 +26,7 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.git/)
find_package(Git)
if(GIT_FOUND)
# message(STATUS "Found Git: ${GIT_EXECUTABLE}")
- execute_process(COMMAND git rev-parse --short HEAD
+ execute_process(COMMAND git rev-parse --short=12 HEAD
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE MY_WC_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE