Skip to content

Commit

Permalink
git-r3.eclass: Remove special logic for obsolete Google Code
Browse files Browse the repository at this point in the history
Remove the special logic that was needed to handle Google Code git
hosting since the service has been discontinued and no longer works.
  • Loading branch information
mgorny committed May 26, 2016
1 parent 62a3a81 commit 01e0cef
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions eclass/git-r3.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ _git-r3_set_gitdir() {
git/*) repo_name=${repo_name#git/};;
# gentoo.org
gitroot/*) repo_name=${repo_name#gitroot/};;
# google code, sourceforge
# sourceforge
p/*) repo_name=${repo_name#p/};;
# kernel.org
pub/scm/*) repo_name=${repo_name#pub/scm/};;
Expand Down Expand Up @@ -567,22 +567,6 @@ git-r3_fetch() {
die "dev-vcs/git built with USE=curl required."
fi

if [[ ${r} == https://code.google.com/* ]]; then
# Google Code has special magic on top of git that:
# 1) can't handle shallow clones at all,
# 2) fetches duplicately when tags are pulled in with branch
# so automatically switch to single+tags mode.
if [[ ${clone_type} == shallow ]]; then
einfo " Google Code does not support shallow clones"
einfo " using \e[1mEGIT_CLONE_TYPE=single+tags\e[22m"
clone_type=single+tags
elif [[ ${clone_type} == single ]]; then
einfo " git-r3: Google Code does not send tags properly in 'single' mode"
einfo " using \e[1mEGIT_CLONE_TYPE=single+tags\e[22m"
clone_type=single+tags
fi
fi

if [[ ${clone_type} == mirror ]]; then
fetch_command+=(
--prune
Expand Down

0 comments on commit 01e0cef

Please sign in to comment.