diff options
author | Fernando J. Pereda <ferdy@gentoo.org> | 2007-03-14 15:48:12 +0000 |
---|---|---|
committer | Fernando J. Pereda <ferdy@gentoo.org> | 2007-03-14 15:48:12 +0000 |
commit | b0b95eb291f1f026e7adff208562b4a7d1b2ae5b (patch) | |
tree | 98c89e4bc7ed328eb15b7c4d640d5c15e470727d /eclass/git.eclass | |
parent | Add missing dep for xfce-mcs-manager as pointed out by Betelgeuse, thanks. (diff) | |
download | historical-b0b95eb291f1f026e7adff208562b4a7d1b2ae5b.tar.gz historical-b0b95eb291f1f026e7adff208562b4a7d1b2ae5b.tar.bz2 historical-b0b95eb291f1f026e7adff208562b4a7d1b2ae5b.zip |
Fix for bug #170818. Thanks to Trevor Hardcastle <chizu@osuosl.org>.
Diffstat (limited to 'eclass/git.eclass')
-rw-r--r-- | eclass/git.eclass | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/eclass/git.eclass b/eclass/git.eclass index 6d706e2090f2..94e507b94973 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.3 2006/12/30 18:21:02 ferdy Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.4 2007/03/14 15:48:12 ferdy Exp $ ## --------------------------------------------------------------------------- # # subversion.eclass author: Akinori Hattori <hattya@gentoo.org> @@ -152,14 +152,16 @@ git_fetch() { # EGIT_REPO_URI is empty. [[ -z ${EGIT_REPO_URI} ]] && die "${EGIT}: EGIT_REPO_URI is empty." - # check for the protocol. - case ${EGIT_REPO_URI%%:*} in - git*|http|https|rsync|ssh) - ;; - *) - die "${EGIT}: fetch from "${EGIT_REPO_URI%:*}" is not yet implemented." - ;; - esac + # check for the protocol or pull from a local repo. + if [[ -z ${EGIT_REPO_URI%%:*} ]] ; then + case ${EGIT_REPO_URI%%:*} in + git*|http|https|rsync|ssh) + ;; + *) + die "${EGIT}: fetch from "${EGIT_REPO_URI%:*}" is not yet implemented." + ;; + esac + fi if [[ ! -d ${EGIT_STORE_DIR} ]] ; then debug-print "${FUNCNAME}: initial clone. creating git directory" |