diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-11-12 17:54:41 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-11-12 17:42:13 +0000 |
commit | 7b964c72698054337e1c40df23550edad96de8b5 (patch) | |
tree | 44d7294a925a750a556bfa121839e218977bb205 /buildtools/wafsamba/samba_patterns.py | |
parent | a0c2040ab698c8f053d12b4f53b0ac76a8f5ebac (diff) | |
download | samba-7b964c72698054337e1c40df23550edad96de8b5.tar.gz samba-7b964c72698054337e1c40df23550edad96de8b5.tar.xz samba-7b964c72698054337e1c40df23550edad96de8b5.zip |
samba_version: When working from git checkout, display git revision SHA1 rather
than Bazaar revision ids.
Diffstat (limited to 'buildtools/wafsamba/samba_patterns.py')
-rw-r--r-- | buildtools/wafsamba/samba_patterns.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_patterns.py b/buildtools/wafsamba/samba_patterns.py index 4307bf25859..9693c5965ec 100644 --- a/buildtools/wafsamba/samba_patterns.py +++ b/buildtools/wafsamba/samba_patterns.py @@ -12,9 +12,9 @@ def write_version_header(task): have_git = 'GIT' in task.env - version = samba_version_file(src, have_git=have_git) + version = samba_version_file(src, task.env.srcdir, have_git=have_git) string = str(version) - + f = open(tgt, 'w') s = f.write(string) f.close() |