All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boszormenyi Zoltan <zboszor@pr.hu>
To: openembedded-devel@lists.openembedded.org
Subject: Bitbake 1.22 GIT fetcher problem with tags
Date: Thu, 11 Jun 2015 17:35:37 +0200	[thread overview]
Message-ID: <5579AAC9.8090508@pr.hu> (raw)

[-- 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]
 

             reply	other threads:[~2015-06-11 15:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-11 15:35 Boszormenyi Zoltan [this message]
2015-06-12  7:07 ` [oe] Bitbake 1.22 GIT fetcher problem with tags Robert Yang
  -- strict thread matches above, loose matches on Subject: below --
2015-06-12 10:25 Boszormenyi Zoltan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5579AAC9.8090508@pr.hu \
    --to=zboszor@pr.hu \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.