From b0b95eb291f1f026e7adff208562b4a7d1b2ae5b Mon Sep 17 00:00:00 2001 From: "Fernando J. Pereda" Date: Wed, 14 Mar 2007 15:48:12 +0000 Subject: [PATCH] Fix for bug #170818. Thanks to Trevor Hardcastle . --- eclass/git.eclass | 20 +++++++++++--------- 1 file 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 @@ -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" -- 2.26.2