summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-20 14:23:55 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-20 20:40:48 +0000
commit8ef24f4c834298348172b96ec0b855bf09552b09 (patch)
treee183e33087b4456dd4ca469c4ce554c026882d1c /lib/bb/fetch2/git.py
parentdf2e0972cd1db7abd5ec8b7cb295fb0c42e284a4 (diff)
downloadbitbake-8ef24f4c834298348172b96ec0b855bf09552b09.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/git.py')
-rw-r--r--lib/bb/fetch2/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index d73f0cbec..f7c26b36c 100644
--- a/lib/bb/fetch2/git.py
+++ b/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)