[bitbake-devel] [PATCH v2] git: allow use of HEAD
Cody P Schafer
dev at codyps.com
Mon Jun 1 17:41:17 UTC 2015
Especially useful in the case where one has local git repositories that
they point bitbake at via bbappends for development purposes.
Signed-off-by: Cody P Schafer <dev at codyps.com>
---
lib/bb/fetch2/git.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index 0fd9bee..161a2db 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -342,7 +342,7 @@ class Git(FetchMethod):
"""
output = self._lsremote(ud, d, "")
# Tags of the form ^{} may not work, need to fallback to other form
- if ud.unresolvedrev[name][:5] == "refs/":
+ if ud.unresolvedrev[name][:5] == "refs/" or ud.unresolvedrev[name] == "HEAD":
head = ud.unresolvedrev[name]
tag = ud.unresolvedrev[name]
else:
--
2.4.1
More information about the bitbake-devel
mailing list