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-04-19 11:04:48 +0100
commit50e9ccb2aff7b9f9dca4fda99a6832c60f64de3b (patch)
tree28ec4f8c63d8cc3988c4a67404ce5b7bbb21b7ec /bitbake/lib
parentc65c136746d9f918a635440a6131ac27da2456d5 (diff)
downloadpoky-50e9ccb2aff7b9f9dca4fda99a6832c60f64de3b.tar.gz
bitbake: 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 master rev: df2e0972cd1db7abd5ec8b7cb295fb0c42e284a4) (Bitbake rev: da93afe9834e137ed1e9410380181286c80198b5) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> 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 6175e4c7c9..989d72cb31 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -305,8 +305,8 @@ class Git(FetchMethod):
305 username = "" 305 username = ""
306 306
307 basecmd = data.getVar("FETCHCMD_git", d, True) or "git" 307 basecmd = data.getVar("FETCHCMD_git", d, True) or "git"
308 cmd = "%s ls-remote %s://%s%s%s %s" % \ 308 cmd = "%s ls-remote %s://%s%s%s refs/heads/%s refs/tags/%s" % \
309 (basecmd, ud.proto, username, ud.host, ud.path, ud.branches[name]) 309 (basecmd, ud.proto, username, ud.host, ud.path, ud.branches[name], ud.branches[name])
310 if ud.proto.lower() != 'file': 310 if ud.proto.lower() != 'file':
311 bb.fetch2.check_network_access(d, cmd) 311 bb.fetch2.check_network_access(d, cmd)
312 output = runfetchcmd(cmd, d, True) 312 output = runfetchcmd(cmd, d, True)