mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
dea828c744
commit
a7d5f73134
@@ -176,7 +176,8 @@ class Git(Fetch):
|
|||||||
else:
|
else:
|
||||||
username = ""
|
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)
|
output = runfetchcmd(cmd, d, True)
|
||||||
if not output:
|
if not output:
|
||||||
raise bb.fetch.FetchError("Fetch command %s gave empty output\n" % (cmd))
|
raise bb.fetch.FetchError("Fetch command %s gave empty output\n" % (cmd))
|
||||||
|
|||||||
Reference in New Issue
Block a user