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
commit961eec2fc69c5a72cec39c15fd7e72056f2dfb8d (patch)
tree0f8dc6866c6219328743f8a9bbd8bf1646655f31 /eclass
parentVersion bump. (diff)
downloadgentoo-2-961eec2fc69c5a72cec39c15fd7e72056f2dfb8d.tar.gz
gentoo-2-961eec2fc69c5a72cec39c15fd7e72056f2dfb8d.tar.bz2
gentoo-2-961eec2fc69c5a72cec39c15fd7e72056f2dfb8d.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
}