summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/git_sha1_gen.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/git_sha1_gen.py b/bin/git_sha1_gen.py
index 6d13db1e16f3..fe30084a4f87 100755
--- a/bin/git_sha1_gen.py
+++ b/bin/git_sha1_gen.py
@@ -16,5 +16,8 @@ try:
except subprocess.CalledProcessError as e:
# don't print anything if git fails
pass
+except OSError as eos:
+ # don't fail on inaccessible files when sandboxed
+ pass
else:
sys.stdout.write('#define MESA_GIT_SHA1 "git-%s"\n' % git_sha1.rstrip())