From c81d3ad1e3e3cc4cb18ca520b49c147edae23cd8 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 20 Jan 2014 14:23:55 +0000 Subject: bitbake: fetch2/git: Dereference unresolved tags with ls-remote We need to deference tags when trying to map them to commit IDs with ls-remote. If we don't do this, a given commit might not show up later in a specific branch. There appears to be no good reason not to do this. (Bitbake rev: 8ef24f4c834298348172b96ec0b855bf09552b09) Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/fetch2/git.py') diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index d73f0cbecf..f7c26b36cc 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -326,7 +326,7 @@ class Git(FetchMethod): else: username = "" - cmd = "%s ls-remote %s://%s%s%s refs/heads/%s refs/tags/%s" % \ + cmd = "%s ls-remote %s://%s%s%s refs/heads/%s refs/tags/%s^{}" % \ (ud.basecmd, ud.proto, username, ud.host, ud.path, ud.unresolvedrev[name], ud.unresolvedrev[name]) if ud.proto.lower() != 'file': bb.fetch2.check_network_access(d, cmd) -- cgit v1.2.3-54-g00ecf