/[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.11 Revision 1.12
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.11 2013/09/26 21:04:42 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.12 2013/09/27 16:22:28 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.
443 local fetch_command=( git fetch ) 443 local fetch_command=( git fetch )
444 if [[ ${nonshallow} ]]; then 444 if [[ ${nonshallow} ]]; then
445 if [[ -f ${GIT_DIR}/shallow ]]; then 445 if [[ -f ${GIT_DIR}/shallow ]]; then
446 ref_param+=( --unshallow ) 446 ref_param+=( --unshallow )
447 fi 447 fi
448 # fetch all branches
449 ref_param+=( "refs/heads/*:refs/remotes/origin/*" )
448 else 450 else
449 # 'git show-ref --heads' returns 1 when there are no branches 451 # 'git show-ref --heads' returns 1 when there are no branches
450 if ! git show-ref --heads -q; then 452 if ! git show-ref --heads -q; then
451 ref_param+=( --depth 1 ) 453 ref_param+=( --depth 1 )
452 else 454 else

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20