diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index cae165316c..d73f0cbecf 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -326,8 +326,8 @@ class Git(FetchMethod): | |||
326 | else: | 326 | else: |
327 | username = "" | 327 | username = "" |
328 | 328 | ||
329 | cmd = "%s ls-remote %s://%s%s%s %s" % \ | 329 | cmd = "%s ls-remote %s://%s%s%s refs/heads/%s refs/tags/%s" % \ |
330 | (ud.basecmd, ud.proto, username, ud.host, ud.path, ud.unresolvedrev[name]) | 330 | (ud.basecmd, ud.proto, username, ud.host, ud.path, ud.unresolvedrev[name], ud.unresolvedrev[name]) |
331 | if ud.proto.lower() != 'file': | 331 | if ud.proto.lower() != 'file': |
332 | bb.fetch2.check_network_access(d, cmd) | 332 | bb.fetch2.check_network_access(d, cmd) |
333 | output = runfetchcmd(cmd, d, True) | 333 | output = runfetchcmd(cmd, d, True) |