diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-07-02 22:29:50 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-07-02 22:30:50 +0400 |
commit | e81b9386318a00beb949e23f08ddb0aba7bfc0a9 (patch) | |
tree | 7c4ed8b4774b6a44d81eec102f914bb37129c936 | |
parent | 241a9b5c6e9f272b17adee8c09ed454637e13879 (diff) |
Fix scons unable to build with sources tar archive (no git repo available in this case).
Reported by Clouclou over IRC, thanks!
-rw-r--r-- | build_files/scons/tools/btools.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build_files/scons/tools/btools.py b/build_files/scons/tools/btools.py index 4124d066734..214827b6668 100644 --- a/build_files/scons/tools/btools.py +++ b/build_files/scons/tools/btools.py @@ -76,6 +76,9 @@ def get_hash(): except OSError: build_hash = None print("WARNING: could not use git to retrieve current Blender repository hash...") + except subprocess.CalledProcessError as e: + build_hash = None + print("WARNING: git errored while retrieving current Blender repository hash (%d)..." % e.returncode) if build_hash == '' or build_hash == None: build_hash = 'UNKNOWN' |