diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2010-01-13 09:51:53 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2010-01-13 09:51:53 +0000 |
commit | a2e1ee91d6ee4f3fea9b5a89ef5b17faa4393bbe (patch) | |
tree | 42a5e7003cfb8a7a37219c476875737a3e35bfcf /eclass/git.eclass | |
parent | Update documentation wrt 2009 additions (diff) | |
download | historical-a2e1ee91d6ee4f3fea9b5a89ef5b17faa4393bbe.tar.gz historical-a2e1ee91d6ee4f3fea9b5a89ef5b17faa4393bbe.tar.bz2 historical-a2e1ee91d6ee4f3fea9b5a89ef5b17faa4393bbe.zip |
Use bash 3.2 features.
Diffstat (limited to 'eclass/git.eclass')
-rw-r--r-- | eclass/git.eclass | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/eclass/git.eclass b/eclass/git.eclass index a6abf8a2a0c6..59375b6ec058 100644 --- a/eclass/git.eclass +++ b/eclass/git.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.33 2009/12/29 17:18:16 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.34 2010/01/13 09:51:53 scarabeus Exp $ # @ECLASS: git.eclass # @MAINTAINER: @@ -52,7 +52,7 @@ DEPEND=">=dev-util/git-1.6" # @ECLASS-VARIABLE: EGIT_UPDATE_CMD # @DESCRIPTION: # Git fetch command. -EGIT_UPDATE_CMD="git pull -f -u" +EGIT_UPDATE_CMD="git pull -f -u --all" # @ECLASS-VARIABLE: EGIT_DIFFSTAT_CMD # @DESCRIPTION: @@ -299,12 +299,14 @@ git_fetch() { [[ ${EGIT_COMMIT} != ${EGIT_BRANCH} ]] && elog " commit: ${EGIT_COMMIT}" ${elogcmd} " branch: ${EGIT_BRANCH}" - ${elogcmd} " storage directory: \"${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}\"" + ${elogcmd} " storage directory: \"${GIT_DIR}\"" - # unpack to the ${S} popd &> /dev/null - debug-print "cp -aR \"${GIT_DIR}\" \"${S}\"" - git clone "${GIT_DIR}" "${S}" + + # unpack to the ${S} + # "${EGIT_REPO_URI}" + debug-print "git clone -l -s -n \"${GIT_DIR}\" \"${S}\"" + git clone -l -s -n "${GIT_DIR}" "${S}" # set correct branch and the tree ebuild specified pushd "${S}" > /dev/null @@ -315,6 +317,7 @@ git_fetch() { fi debug-print "git checkout -b ${branchname} ${src}" git checkout -b ${branchname} ${src} 2>&1 > /dev/null + git_sumbodules popd > /dev/null |