From: Chris Larson Date: Wed, 24 Feb 2010 16:32:26 +0000 (-0700) Subject: Fix ud.basecmd error introduced by the FETCHCMD_git commit X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0bbcbe3548f39ca46c5aa3bf1a8681026e51cbf0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git Fix ud.basecmd error introduced by the FETCHCMD_git commit Signed-off-by: Chris Larson --- diff --git a/lib/bb/fetch/git.py b/lib/bb/fetch/git.py index f983ccf2771..41ebc5b998f 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))