summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-20 14:30:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-21 10:20:13 +0000
commitd21c1537b7052aa24ec56434b821fee67de33a83 (patch)
tree36b61235457789a903498129f80f9c3ef6266782 /bitbake/lib
parent594c2e01e7f36476fee3ee47e2e94f60f06f2df9 (diff)
downloadpoky-d21c1537b7052aa24ec56434b821fee67de33a83.tar.gz
bitbake: fetch2/git: Anchor names when using ls-remote
When specifying tags, they're searched for unanchored so foo/bar could match: refs/heads/abc/foo/bar refs/heads/xyz/foo/bar refs/heads/foo/bar This change anchors the expressions so they are based against heads or tags (or any other base level tree that has been created). (Bitbake rev: df2e0972cd1db7abd5ec8b7cb295fb0c42e284a4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/fetch2/git.py4
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)