Skip to contentSkip to conversation

bitbake: fetch2/git: Allow HEAD to be searched.

PATCH New Mariano Lopez 1 participant 1 message Apr 23, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: fetch2/git: Allow HEAD to be searched.

This makes it possble to fetch/search HEAD. This is useful when searching for HEAD doing the sanity check.

[YOCTO #7592]

---
 bitbake/lib/bb/fetch2/git.py | 3 +++
 1 file changed, 3 insertions(+)
bitbake/lib/bb/fetch2/git.py +3 -0
index 0d91431..12fb6a2 100644
@@ -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]
Signature · 1 line
1.8.4.5