]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerChris Larson <chris_larson@mentor.com>
Wed, 24 Feb 2010 16:32:26 +0000 (09:32 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
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))