All of lore.kernel.org
 help / color / mirror / Atom feed
* Bitbake 1.22 GIT fetcher problem with tags
@ 2015-06-11 15:35 Boszormenyi Zoltan
  0 siblings, 0 replies; 2+ messages in thread
From: Boszormenyi Zoltan @ 2015-06-11 15:35 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

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: 594 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]
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Bitbake 1.22 GIT fetcher problem with tags
@ 2015-06-12 10:25 Boszormenyi Zoltan
  0 siblings, 0 replies; 2+ messages in thread
From: Boszormenyi Zoltan @ 2015-06-12 10:25 UTC (permalink / raw)
  To: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 339 bytes --]

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]
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-12 10:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-12 10:25 Bitbake 1.22 GIT fetcher problem with tags Boszormenyi Zoltan
  -- strict thread matches above, loose matches on Subject: below --
2015-06-11 15:35 Boszormenyi Zoltan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.