/[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.36 Revision 1.37
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.36 2014/03/02 11:49:49 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.37 2014/03/02 11:50:23 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.
505 "+${fetch_l}:${fetch_r}" 505 "+${fetch_l}:${fetch_r}"
506 ) 506 )
507 fi 507 fi
508 508
509 if [[ ${EGIT_CLONE_TYPE} == shallow ]]; then 509 if [[ ${EGIT_CLONE_TYPE} == shallow ]]; then
510 # use '--depth 1' when fetching a new branch 510 if _git-r3_is_local_repo; then
511 # '--depth 1' causes sandbox violations with local repos
512 # bug #491260
513 local EGIT_CLONE_TYPE=single
511 if [[ ! $(git rev-parse --quiet --verify "${fetch_r}") ]] 514 elif [[ ! $(git rev-parse --quiet --verify "${fetch_r}") ]]
512 then 515 then
516 # use '--depth 1' when fetching a new branch
513 fetch_command+=( --depth 1 ) 517 fetch_command+=( --depth 1 )
514 fi 518 fi
515 else # non-shallow mode 519 else # non-shallow mode
516 if [[ -f ${GIT_DIR}/shallow ]]; then 520 if [[ -f ${GIT_DIR}/shallow ]]; then
517 fetch_command+=( --unshallow ) 521 fetch_command+=( --unshallow )

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

  ViewVC Help
Powered by ViewVC 1.1.20