diff options
author | Michał Górny <mgorny@gentoo.org> | 2014-03-03 21:45:06 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2014-03-03 21:45:06 +0000 |
commit | 4565213f3a455aaad04b7ca5ef85626e520073a9 (patch) | |
tree | ba45e99685726b29a65185665fe658665e6e8fa3 /eclass/git-r3.eclass | |
parent | Version bump. (diff) | |
download | gentoo-2-4565213f3a455aaad04b7ca5ef85626e520073a9.tar.gz gentoo-2-4565213f3a455aaad04b7ca5ef85626e520073a9.tar.bz2 gentoo-2-4565213f3a455aaad04b7ca5ef85626e520073a9.zip |
Force EGIT_CLONE_TYPE=mirror for submodules since they can reference commits in any branch without explicitly naming the branch, bug #503332.
Diffstat (limited to 'eclass/git-r3.eclass')
-rw-r--r-- | eclass/git-r3.eclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass index b0c836071682..777ee505d79a 100644 --- a/eclass/git-r3.eclass +++ b/eclass/git-r3.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.38 2014/03/02 11:50:48 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.39 2014/03/03 21:45:06 mgorny Exp $ # @ECLASS: git-r3.eclass # @MAINTAINER: @@ -578,6 +578,10 @@ git-r3_fetch() { done [[ ${success} ]] || die "Unable to fetch from any of EGIT_REPO_URI" + # submodules can reference commits in any branch + # always use the 'clone' mode to accomodate that, bug #503332 + local EGIT_CLONE_TYPE=mirror + # recursively fetch submodules if git cat-file -e "${local_ref}":.gitmodules &>/dev/null; then local submodules |