diff options
author | Bo Ørsted Andresen <zlin@gentoo.org> | 2008-06-16 11:22:38 +0000 |
---|---|---|
committer | Bo Ørsted Andresen <zlin@gentoo.org> | 2008-06-16 11:22:38 +0000 |
commit | ccac1dcfd1b2b75354d4e8ea088de739b48a533a (patch) | |
tree | e979571a898c6dfb375320c70164451a506fc5fa /eclass/git.eclass | |
parent | Remove bindnow-flags that is now deprecated. (diff) | |
download | historical-ccac1dcfd1b2b75354d4e8ea088de739b48a533a.tar.gz historical-ccac1dcfd1b2b75354d4e8ea088de739b48a533a.tar.bz2 historical-ccac1dcfd1b2b75354d4e8ea088de739b48a533a.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.eclass | 7 |
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}" |