[bitbake-devel] [PATCH] bitbake: fetch2/git: Allow HEAD to be searched.
Mariano Lopez
mariano.lopez at linux.intel.com
Mon Apr 27 16:16:48 UTC 2015
This makes it possble to fetch/search HEAD. This is useful when
searching for HEAD doing the sanity check.
Please disregard previous patch with the same topic.
[YOCTO #7592]
Signed-off-by: Mariano Lopez <mariano.lopez at linux.intel.com>
---
bitbake/lib/bb/fetch2/git.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 0d91431..12fb6a2 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -345,6 +345,9 @@ class Git(FetchMethod):
if ud.unresolvedrev[name][:5] == "refs/":
head = ud.unresolvedrev[name]
tag = ud.unresolvedrev[name]
+ elif ud.unresolvedrev[name] == "HEAD":
+ head = ud.unresolvedrev[name]
+ tag = ud.unresolvedrev[name]
else:
head = "refs/heads/%s" % ud.unresolvedrev[name]
tag = "refs/tags/%s" % ud.unresolvedrev[name]
--
1.8.4.5
More information about the bitbake-devel
mailing list