summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Ørsted Andresen <zlin@gentoo.org>2008-06-16 11:22:38 +0000
committerBo Ørsted Andresen <zlin@gentoo.org>2008-06-16 11:22:38 +0000
commit230a7cba47feff4789bd3d5294b2be72751fc870 (patch)
treefee425d2a6811e5ee6e22b045dd8105e97f58708 /eclass/git.eclass
parentRemove bindnow-flags that is now deprecated. (diff)
downloadgentoo-2-230a7cba47feff4789bd3d5294b2be72751fc870.tar.gz
gentoo-2-230a7cba47feff4789bd3d5294b2be72751fc870.tar.bz2
gentoo-2-230a7cba47feff4789bd3d5294b2be72751fc870.zip
Revert last commit as it turns out it breaks with latest stable git (1.5.4.x and below).
Diffstat (limited to 'eclass/git.eclass')
-rw-r--r--eclass/git.eclass7
1 files changed, 3 insertions, 4 deletions
diff --git a/eclass/git.eclass b/eclass/git.eclass
index f5c36e0234e6..94226ee89448 100644
--- a/eclass/git.eclass
+++ b/eclass/git.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.13 2008/06/16 07:51:00 zlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.14 2008/06/16 11:22:38 zlin Exp $
## --------------------------------------------------------------------------- #
# subversion.eclass author: Akinori Hattori <hattya@gentoo.org>
@@ -190,9 +190,7 @@ git_fetch() {
debug-print "${FUNCNAME}: EGIT_OPTIONS = \"${EGIT_OPTIONS}\""
- mkdir -p "${S}"
export GIT_DIR="${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}"
- export GIT_WORK_TREE="${S}"
if [[ ! -d ${EGIT_CLONE_DIR} ]] ; then
# first clone
@@ -237,7 +235,8 @@ git_fetch() {
einfo " committish: ${EGIT_TREE}"
# export to the ${WORKDIR}
- git checkout -f ${EGIT_TREE}
+ mkdir -p "${S}"
+ git archive --format=tar ${EGIT_TREE} | ( cd "${S}" ; tar xf - )
echo ">>> Unpacked to ${S}"