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:
-rw-r--r--build_files/cmake/buildinfo.cmake2
-rw-r--r--build_files/scons/tools/Blender.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/build_files/cmake/buildinfo.cmake b/build_files/cmake/buildinfo.cmake
index 2cc92df15e7..7fc052eb249 100644
--- a/build_files/cmake/buildinfo.cmake
+++ b/build_files/cmake/buildinfo.cmake
@@ -12,7 +12,7 @@ if(EXISTS ${SOURCE_DIR}/.git/)
# The FindSubversion.cmake module is part of the standard distribution
include(FindGit)
if(GIT_FOUND)
- execute_process(COMMAND git rev-parse --short HEAD
+ execute_process(COMMAND git rev-parse --short @{u}
WORKING_DIRECTORY ${SOURCE_DIR}
OUTPUT_VARIABLE MY_WC_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE)
diff --git a/build_files/scons/tools/Blender.py b/build_files/scons/tools/Blender.py
index 894c8dbca25..9d1a6390774 100644
--- a/build_files/scons/tools/Blender.py
+++ b/build_files/scons/tools/Blender.py
@@ -419,7 +419,7 @@ def buildinfo(lenv, build_type):
build_commit_timestamp = '0'
build_branch = 'unknown'
else:
- build_hash = os.popen('git rev-parse --short HEAD').read().strip()
+ build_hash = os.popen('git rev-parse --short @{u}').read().strip()
build_branch = os.popen('git rev-parse --abbrev-ref HEAD').read().strip()
# ## Check for local modifications