summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_version.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_version.py b/buildtools/wafsamba/samba_version.py
index df715840cb..076615b6c4 100644
--- a/buildtools/wafsamba/samba_version.py
+++ b/buildtools/wafsamba/samba_version.py
@@ -50,6 +50,7 @@ def git_version_summary(path, env=None):
return ("GIT-UNKNOWN", {})
os.putenv('GIT_DIR', '%s/.git' % path)
+ os.putenv('GIT_WORK_TREE', path)
git = Utils.cmd_output(env.GIT + ' show --pretty=format:"%h%n%ct%n%H%n%cd" --stat HEAD', silent=True)
lines = git.splitlines()