summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-02-24 09:32:26 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-03-22 14:58:41 +0000
commita7d5f7313465c1a026a74cbb383bb7073ffffcc1 (patch)
treed8cfc21ec4ad7b48d2146b8b305860e390476f06 /bitbake
parentdea828c7445f97f3d8c856f12c945ca267713bcd (diff)
downloadopenembedded-core-a7d5f7313465c1a026a74cbb383bb7073ffffcc1.tar.gz
openembedded-core-a7d5f7313465c1a026a74cbb383bb7073ffffcc1.tar.bz2
openembedded-core-a7d5f7313465c1a026a74cbb383bb7073ffffcc1.zip
Fix ud.basecmd error introduced by the FETCHCMD_git commit
(Bitbake rev: 0bbcbe3548f39ca46c5aa3bf1a8681026e51cbf0) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py
index f983ccf277..41ebc5b998 100644
--- a/bitbake/lib/bb/fetch/git.py
+++ b/bitbake/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))