1 |
commit: 01e0cef7cbdc919057be570cbd4cf88e72447b89 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 26 09:18:06 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 26 09:19:00 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01e0cef7 |
7 |
|
8 |
git-r3.eclass: Remove special logic for obsolete Google Code |
9 |
|
10 |
Remove the special logic that was needed to handle Google Code git |
11 |
hosting since the service has been discontinued and no longer works. |
12 |
|
13 |
eclass/git-r3.eclass | 18 +----------------- |
14 |
1 file changed, 1 insertion(+), 17 deletions(-) |
15 |
|
16 |
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass |
17 |
index a38472b..f30600b 100644 |
18 |
--- a/eclass/git-r3.eclass |
19 |
+++ b/eclass/git-r3.eclass |
20 |
@@ -328,7 +328,7 @@ _git-r3_set_gitdir() { |
21 |
git/*) repo_name=${repo_name#git/};; |
22 |
# gentoo.org |
23 |
gitroot/*) repo_name=${repo_name#gitroot/};; |
24 |
- # google code, sourceforge |
25 |
+ # sourceforge |
26 |
p/*) repo_name=${repo_name#p/};; |
27 |
# kernel.org |
28 |
pub/scm/*) repo_name=${repo_name#pub/scm/};; |
29 |
@@ -567,22 +567,6 @@ git-r3_fetch() { |
30 |
die "dev-vcs/git built with USE=curl required." |
31 |
fi |
32 |
|
33 |
- if [[ ${r} == https://code.google.com/* ]]; then |
34 |
- # Google Code has special magic on top of git that: |
35 |
- # 1) can't handle shallow clones at all, |
36 |
- # 2) fetches duplicately when tags are pulled in with branch |
37 |
- # so automatically switch to single+tags mode. |
38 |
- if [[ ${clone_type} == shallow ]]; then |
39 |
- einfo " Google Code does not support shallow clones" |
40 |
- einfo " using \e[1mEGIT_CLONE_TYPE=single+tags\e[22m" |
41 |
- clone_type=single+tags |
42 |
- elif [[ ${clone_type} == single ]]; then |
43 |
- einfo " git-r3: Google Code does not send tags properly in 'single' mode" |
44 |
- einfo " using \e[1mEGIT_CLONE_TYPE=single+tags\e[22m" |
45 |
- clone_type=single+tags |
46 |
- fi |
47 |
- fi |
48 |
- |
49 |
if [[ ${clone_type} == mirror ]]; then |
50 |
fetch_command+=( |
51 |
--prune |