/[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.38 Revision 1.39
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.38 2014/03/02 11:50:48 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.39 2014/03/03 21:45:06 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.
576 break 576 break
577 fi 577 fi
578 done 578 done
579 [[ ${success} ]] || die "Unable to fetch from any of EGIT_REPO_URI" 579 [[ ${success} ]] || die "Unable to fetch from any of EGIT_REPO_URI"
580 580
581 # submodules can reference commits in any branch
582 # always use the 'clone' mode to accomodate that, bug #503332
583 local EGIT_CLONE_TYPE=mirror
584
581 # recursively fetch submodules 585 # recursively fetch submodules
582 if git cat-file -e "${local_ref}":.gitmodules &>/dev/null; then 586 if git cat-file -e "${local_ref}":.gitmodules &>/dev/null; then
583 local submodules 587 local submodules
584 _git-r3_set_submodules \ 588 _git-r3_set_submodules \
585 "$(git cat-file -p "${local_ref}":.gitmodules || die)" 589 "$(git cat-file -p "${local_ref}":.gitmodules || die)"

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.20