From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-dev] [PATCH 3/3] git-r3.eclass: Accept any ref rather than refs/heads/* only
Date: Sat, 26 Sep 2015 15:28:59 +0200 [thread overview]
Message-ID: <1443274139-3860-4-git-send-email-mgorny@gentoo.org> (raw)
In-Reply-To: <1443274139-3860-1-git-send-email-mgorny@gentoo.org>
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=556822
---
eclass/git-r3.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
index eff3fa2..3e2cc83 100644
--- a/eclass/git-r3.eclass
+++ b/eclass/git-r3.eclass
@@ -581,8 +581,8 @@ git-r3_fetch() {
if [[ ${remote_ref} == HEAD ]]; then
# HEAD
fetch_l=HEAD
- elif [[ ${remote_ref} == refs/heads/* ]]; then
- # regular branch
+ elif [[ ${remote_ref} == refs/* ]]; then
+ # regular branch, tag or some other explicit ref
fetch_l=${remote_ref}
else
# tag or commit id...
@@ -919,7 +919,7 @@ git-r3_peek_remote_ref() {
einfo "Peeking \e[1m${remote_ref}\e[22m on \e[1m${r}\e[22m ..." >&2
local lookup_ref
- if [[ ${remote_ref} == refs/heads/* || ${remote_ref} == HEAD ]]
+ if [[ ${remote_ref} == refs/* || ${remote_ref} == HEAD ]]
then
lookup_ref=${remote_ref}
else
--
2.5.3
next prev parent reply other threads:[~2015-09-26 13:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-26 13:28 [gentoo-dev] [PATCHES] git-r3.eclass: Slight cleanup and support for any ref Michał Górny
2015-09-26 13:28 ` [gentoo-dev] [PATCH 1/3] git-r3.eclass: Improve the comments a bit Michał Górny
2015-09-26 13:28 ` [gentoo-dev] [PATCH 2/3] git-r3.eclass: Remove unused variable Michał Górny
2015-09-26 13:28 ` Michał Górny [this message]
2015-09-26 14:44 ` [gentoo-dev] [PATCHES] git-r3.eclass: Slight cleanup and support for any ref Alexis Ballier
2015-09-26 15:36 ` Michał Górny
2015-11-29 10:04 ` Michał Górny
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=1443274139-3860-4-git-send-email-mgorny@gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-dev@lists.gentoo.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