summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_git.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/wafsamba/samba_git.py')
-rw-r--r--buildtools/wafsamba/samba_git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_git.py b/buildtools/wafsamba/samba_git.py
index c58a57983d5..09a204f1f4f 100644
--- a/buildtools/wafsamba/samba_git.py
+++ b/buildtools/wafsamba/samba_git.py
@@ -4,7 +4,7 @@ import subprocess
def find_git(env=None):
"""Find the git binary."""
if env is not None and 'GIT' in env:
- return env['GIT']
+ return env.get_flat('GIT')
# Get version from GIT
if os.path.exists("/usr/bin/git"):