Openembedded Bitbake Development
 help / color / mirror / Atom feed
* [PATCH v2] git: allow use of HEAD
@ 2015-06-01 17:41 Cody P Schafer
  0 siblings, 0 replies; only message in thread
From: Cody P Schafer @ 2015-06-01 17:41 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Cody P Schafer

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@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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-01 17:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-01 17:41 [PATCH v2] git: allow use of HEAD Cody P Schafer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox