diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-02-24 09:32:26 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-02-24 09:32:26 -0700 |
commit | 0bbcbe3548f39ca46c5aa3bf1a8681026e51cbf0 (patch) | |
tree | 56f6c08a6f593bf355c06d20ff193c61578fcc35 /lib/bb/fetch | |
parent | f68406e864c9837feb56cbec993b620481445cc2 (diff) | |
download | bitbake-0bbcbe3548f39ca46c5aa3bf1a8681026e51cbf0.tar.gz |
Fix ud.basecmd error introduced by the FETCHCMD_git commit
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/fetch')
-rw-r--r-- | lib/bb/fetch/git.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/fetch/git.py b/lib/bb/fetch/git.py index f983ccf27..41ebc5b99 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)) |