summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py
index f983ccf277..41ebc5b998 100644
--- a/bitbake/lib/bb/fetch/git.py
+++ b/bitbake/lib/bb/fetch/git.py
@@ -176,7 +176,8 @@ class Git(Fetch):
176 else: 176 else:
177 username = "" 177 username = ""
178 178
179 cmd = "%s ls-remote %s://%s%s%s %s" % (ud.basecmd, ud.proto, username, ud.host, ud.path, ud.branch) 179 basecmd = data.getVar("FETCHCMD_git", d, True) or "git"
180 cmd = "%s ls-remote %s://%s%s%s %s" % (basecmd, ud.proto, username, ud.host, ud.path, ud.branch)
180 output = runfetchcmd(cmd, d, True) 181 output = runfetchcmd(cmd, d, True)
181 if not output: 182 if not output:
182 raise bb.fetch.FetchError("Fetch command %s gave empty output\n" % (cmd)) 183 raise bb.fetch.FetchError("Fetch command %s gave empty output\n" % (cmd))