diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-09-19 09:37:14 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-09-19 09:37:14 +0000 |
commit | 50088d81c4151810402c116e56a463a62b3890f1 (patch) | |
tree | e85b5036e558aac813a37c0dd9b169327178319a /eclass/git-r3.eclass | |
parent | Version bump. (diff) | |
download | historical-50088d81c4151810402c116e56a463a62b3890f1.tar.gz historical-50088d81c4151810402c116e56a463a62b3890f1.tar.bz2 historical-50088d81c4151810402c116e56a463a62b3890f1.zip |
Do not even create shallow repository when EGIT_NONSHALLOW is set. Otherwise, the eclass tries to unshallow it and that breaks broken git servers like Google Code.
Diffstat (limited to 'eclass/git-r3.eclass')
-rw-r--r-- | eclass/git-r3.eclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass index 457d41352303..bfbc67d42a05 100644 --- a/eclass/git-r3.eclass +++ b/eclass/git-r3.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.5 2013/09/13 15:08:37 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.6 2013/09/19 09:37:14 mgorny Exp $ # @ECLASS: git-r3.eclass # @MAINTAINER: @@ -208,8 +208,10 @@ _git-r3_set_gitdir() { mkdir "${GIT_DIR}" || die git init --bare || die - # avoid auto-unshallow :) - touch "${GIT_DIR}"/shallow || die + if [[ ! ${EGIT_NONSHALLOW} ]]; then + # avoid auto-unshallow :) + touch "${GIT_DIR}"/shallow || die + fi fi } |