* [PATCH 0/1] git fetcher fix for Yocto bug 972
@ 2011-04-27 4:48 Yu Ke
2011-04-27 4:48 ` [PATCH 1/1] git fetcher: make tag back to work, fix " Yu Ke
0 siblings, 1 reply; 2+ messages in thread
From: Yu Ke @ 2011-04-27 4:48 UTC (permalink / raw)
To: openembedded-core
From: Yu Ke <ke.yu@intel.com>
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: kyu3/bug972
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kyu3/bug972
Thanks,
Yu Ke <ke.yu@intel.com>
---
Yu Ke (1):
git fetcher: make tag back to work, fix Yocto bug 972
bitbake/lib/bb/fetch2/git.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] git fetcher: make tag back to work, fix Yocto bug 972
2011-04-27 4:48 [PATCH 0/1] git fetcher fix for Yocto bug 972 Yu Ke
@ 2011-04-27 4:48 ` Yu Ke
0 siblings, 0 replies; 2+ messages in thread
From: Yu Ke @ 2011-04-27 4:48 UTC (permalink / raw)
To: openembedded-core
From: Yu Ke <ke.yu@intel.com>
In current git fetcher, tag does not work due to commit http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=5920e85c561624e657c126df58f5c378a8950bbc. Tag is not in sha256 form, so it will be treated invalid, and silently replaced by latest revision.
To fix it, this patch treat tag name as branches name, thus it will be handled correctly later. Thanks Richard for reviewing and proposing the better approach.
Fix [YOCTO #972]
CC: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Yu Ke <ke.yu@intel.com>
---
bitbake/lib/bb/fetch2/git.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index d462acf..811acbf 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -81,6 +81,7 @@ class Git(FetchMethod):
for name in ud.names:
# Ensure anything that doesn't look like a sha256 checksum/revision is translated into one
if not ud.revisions[name] or len(ud.revisions[name]) != 40 or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]):
+ ud.branches[name] = ud.revisions[name]
ud.revisions[name] = self.latest_revision(ud.url, ud, d, name)
def localpath(self, url, ud, d):
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-27 4:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-27 4:48 [PATCH 0/1] git fetcher fix for Yocto bug 972 Yu Ke
2011-04-27 4:48 ` [PATCH 1/1] git fetcher: make tag back to work, fix " Yu Ke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox