summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-09-19 09:37:14 +0000
committerMichał Górny <mgorny@gentoo.org>2013-09-19 09:37:14 +0000
commit50088d81c4151810402c116e56a463a62b3890f1 (patch)
treee85b5036e558aac813a37c0dd9b169327178319a /eclass
parentVersion bump. (diff)
downloadhistorical-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')
-rw-r--r--eclass/ChangeLog7
-rw-r--r--eclass/git-r3.eclass8
2 files changed, 11 insertions, 4 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index d5836fd222ba..c5e9ba3a0db0 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for eclass directory
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.978 2013/09/18 22:48:10 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.979 2013/09/19 09:37:14 mgorny Exp $
+
+ 19 Sep 2013; Michał Górny <mgorny@gentoo.org> git-r3.eclass:
+ 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.
18 Sep 2013; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass:
Fix accepting arguments in distutils_install_for_testing.
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
}