1 |
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=556822 |
2 |
--- |
3 |
eclass/git-r3.eclass | 6 +++--- |
4 |
1 file changed, 3 insertions(+), 3 deletions(-) |
5 |
|
6 |
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass |
7 |
index eff3fa2..3e2cc83 100644 |
8 |
--- a/eclass/git-r3.eclass |
9 |
+++ b/eclass/git-r3.eclass |
10 |
@@ -581,8 +581,8 @@ git-r3_fetch() { |
11 |
if [[ ${remote_ref} == HEAD ]]; then |
12 |
# HEAD |
13 |
fetch_l=HEAD |
14 |
- elif [[ ${remote_ref} == refs/heads/* ]]; then |
15 |
- # regular branch |
16 |
+ elif [[ ${remote_ref} == refs/* ]]; then |
17 |
+ # regular branch, tag or some other explicit ref |
18 |
fetch_l=${remote_ref} |
19 |
else |
20 |
# tag or commit id... |
21 |
@@ -919,7 +919,7 @@ git-r3_peek_remote_ref() { |
22 |
einfo "Peeking \e[1m${remote_ref}\e[22m on \e[1m${r}\e[22m ..." >&2 |
23 |
|
24 |
local lookup_ref |
25 |
- if [[ ${remote_ref} == refs/heads/* || ${remote_ref} == HEAD ]] |
26 |
+ if [[ ${remote_ref} == refs/* || ${remote_ref} == HEAD ]] |
27 |
then |
28 |
lookup_ref=${remote_ref} |
29 |
else |
30 |
-- |
31 |
2.5.3 |