]> code.ossystems Code Review - openembedded-core.git/commitdiff
Fix ud.basecmd error introduced by the FETCHCMD_git commit
authorChris Larson <chris_larson@mentor.com>
Wed, 24 Feb 2010 16:32:26 +0000 (09:32 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 22 Mar 2010 14:58:41 +0000 (14:58 +0000)
(Bitbake rev: 0bbcbe3548f39ca46c5aa3bf1a8681026e51cbf0)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/fetch/git.py

index f983ccf277120bfeced411d11618285e24f905ec..41ebc5b998f5cc9d25c5898d6d6fb1e28a123c83 100644 (file)
@@ -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))