From 551f3eef7403ffcd8838e1034ec1770bf3d37b7d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 25 Nov 2013 16:25:35 +0600 Subject: Show hash from latest pushed commit in buildinfo Before this hash of latest local commit was used, which is not so much useful since nobody can access that commit hash. --- build_files/scons/tools/Blender.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build_files/scons/tools') 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 -- cgit v1.2.3