Bitbake 1.22 GIT fetcher problem with tags
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
lib/bb/fetch2/git.py +1 -1
@@ -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]
Hi Boszormenyi,
This email should go into [email protected].
// 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 <[email protected]>
Reply-To: [email protected]
To: [email protected]
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
lib/bb/fetch2/git.py +1 -1
@@ -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]
Signature · 4 lines
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel