summaryrefslogtreecommitdiffstats
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
parentdea828c7445f97f3d8c856f12c945ca267713bcd (diff)
downloadpoky-a7d5f7313465c1a026a74cbb383bb7073ffffcc1.tar.gz
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>
-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):
176 else: 176 else:
177 username = "" 177 username = ""
178 178
179 cmd = "%s ls-remote %s://%s%s%s %s" % (ud.basecmd, ud.proto, username, ud.host, ud.path, ud.branch) 179 basecmd = data.getVar("FETCHCMD_git", d, True) or "git"
180 cmd = "%s ls-remote %s://%s%s%s %s" % (basecmd, ud.proto, username, ud.host, ud.path, ud.branch)
180 output = runfetchcmd(cmd, d, True) 181 output = runfetchcmd(cmd, d, True)
181 if not output: 182 if not output:
182 raise bb.fetch.FetchError("Fetch command %s gave empty output\n" % (cmd)) 183 raise bb.fetch.FetchError("Fetch command %s gave empty output\n" % (cmd))