* [oe] Bitbake 1.22 GIT fetcher problem with tags
[not found] <5579AAC9.8090508@pr.hu>
@ 2015-06-12 7:07 ` Robert Yang
0 siblings, 0 replies; only message in thread
From: Robert Yang @ 2015-06-12 7:07 UTC (permalink / raw)
To: zboszor, bitbake-devel@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 727 bytes --]
Hi Boszormenyi,
This email should go into bitbake-devel@lists.openembedded.org.
// Robert
-------- Forwarded Message --------
Subject: [oe] Bitbake 1.22 GIT fetcher problem with tags
Date: Thu, 11 Jun 2015 17:35:37 +0200
From: Boszormenyi Zoltan <zboszor@pr.hu>
Reply-To: openembedded-devel@lists.openembedded.org
To: openembedded-devel@lists.openembedded.org
Hi,
when fetching a git:// source using SRCREV="tag_name", do_fetch often fails.
The attached patch solves it. We still use a Yocto 1.6 based system and it is a
necessity.
Can you get this or the patch from bitbake's master branch backported into old
bitbake
branches?
Thanks in advance and best regards,
Zoltán Böszörményi
[-- Attachment #2: bitbake-1.22-git-tag-fix.patch --]
[-- Type: text/x-patch, Size: 596 bytes --]
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index 5d1a358..3897172 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -339,7 +339,7 @@ class Git(FetchMethod):
"""
Compute the HEAD revision for the url
"""
- search = "refs/heads/%s refs/tags/%s^{}" % (ud.unresolvedrev[name], ud.unresolvedrev[name])
+ search = "refs/heads/%s refs/tags/%s refs/tags/%s^{}" % (ud.unresolvedrev[name], ud.unresolvedrev[name], ud.unresolvedrev[name])
output = self._lsremote(ud, d, search)
return output.split()[0]
[-- Attachment #3: Attached Message Part --]
[-- Type: text/plain, Size: 199 bytes --]
--
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply related [flat|nested] only message in thread