summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-02-24 09:32:26 -0700
committerChris Larson <chris_larson@mentor.com>2010-02-24 09:32:26 -0700
commit0bbcbe3548f39ca46c5aa3bf1a8681026e51cbf0 (patch)
tree56f6c08a6f593bf355c06d20ff193c61578fcc35
parentf68406e864c9837feb56cbec993b620481445cc2 (diff)
downloadbitbake-0bbcbe3548f39ca46c5aa3bf1a8681026e51cbf0.tar.gz
Fix ud.basecmd error introduced by the FETCHCMD_git commit
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--lib/bb/fetch/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/fetch/git.py b/lib/bb/fetch/git.py
index f983ccf27..41ebc5b99 100644
--- a/lib/bb/fetch/git.py
+++ b/lib/bb/fetch/git.py
@@ -176,7 +176,8 @@ class Git(Fetch):
else:
username = ""
- cmd = "%s ls-remote %s://%s%s%s %s" % (ud.basecmd, ud.proto, username, ud.host, ud.path, ud.branch)
+ basecmd = data.getVar("FETCHCMD_git", d, True) or "git"
+ cmd = "%s ls-remote %s://%s%s%s %s" % (basecmd, ud.proto, username, ud.host, ud.path, ud.branch)
output = runfetchcmd(cmd, d, True)
if not output:
raise bb.fetch.FetchError("Fetch command %s gave empty output\n" % (cmd))