From: Cody P Schafer <dev@codyps.com>
To: bitbake-devel@lists.openembedded.org
Cc: Cody P Schafer <dev@codyps.com>
Subject: [PATCH v2] git: allow use of HEAD
Date: Mon, 1 Jun 2015 13:41:17 -0400 [thread overview]
Message-ID: <1433180477-14367-1-git-send-email-dev@codyps.com> (raw)
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
reply other threads:[~2015-06-01 17:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1433180477-14367-1-git-send-email-dev@codyps.com \
--to=dev@codyps.com \
--cc=bitbake-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox