/[gentoo-x86]/eclass/git-r3.eclass
Gentoo

Diff of /eclass/git-r3.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.41 Revision 1.42
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.41 2014/04/17 20:28:37 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.42 2014/05/23 07:09:07 mgorny Exp $
4 4
5# @ECLASS: git-r3.eclass 5# @ECLASS: git-r3.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Michał Górny <mgorny@gentoo.org> 7# Michał Górny <mgorny@gentoo.org>
8# @BLURB: Eclass for fetching and unpacking git repositories. 8# @BLURB: Eclass for fetching and unpacking git repositories.
468 einfo "Fetching ${r} ..." 468 einfo "Fetching ${r} ..."
469 469
470 local fetch_command=( git fetch "${r}" ) 470 local fetch_command=( git fetch "${r}" )
471 local clone_type=${EGIT_CLONE_TYPE} 471 local clone_type=${EGIT_CLONE_TYPE}
472 472
473 if [[ ${r} == https://* ]] && ! has_version 'dev-vcs/git[curl]'; then
474 eerror "git-r3: fetching from https:// requested. In order to support https,"
475 eerror "dev-vcs/git needs to be built with USE=curl. Example solution:"
476 eerror
477 eerror " echo dev-vcs/git curl >> /etc/portage/package.use"
478 eerror " emerge -1v dev-vcs/git"
479 die "dev-vcs/git built with USE=curl required."
480 fi
481
473 if [[ ${r} == https://code.google.com/* ]]; then 482 if [[ ${r} == https://code.google.com/* ]]; then
474 # Google Code has special magic on top of git that: 483 # Google Code has special magic on top of git that:
475 # 1) can't handle shallow clones at all, 484 # 1) can't handle shallow clones at all,
476 # 2) fetches duplicately when tags are pulled in with branch 485 # 2) fetches duplicately when tags are pulled in with branch
477 # so automatically switch to single+tags mode. 486 # so automatically switch to single+tags mode.

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

  ViewVC Help
Powered by ViewVC 1.1.20