summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando J. Pereda <ferdy@gentoo.org>2007-03-14 15:48:12 +0000
committerFernando J. Pereda <ferdy@gentoo.org>2007-03-14 15:48:12 +0000
commit33d63e1f08a11aa411c28afd9ee22a07c6fc7c3f (patch)
tree9384c9f70aef2213499070bb6864cb05d6b55c3a /eclass/git.eclass
parentAdd missing dep for xfce-mcs-manager as pointed out by Betelgeuse, thanks. (diff)
downloadgentoo-2-33d63e1f08a11aa411c28afd9ee22a07c6fc7c3f.tar.gz
gentoo-2-33d63e1f08a11aa411c28afd9ee22a07c6fc7c3f.tar.bz2
gentoo-2-33d63e1f08a11aa411c28afd9ee22a07c6fc7c3f.zip
Fix for bug #170818. Thanks to Trevor Hardcastle <chizu@osuosl.org>.
Diffstat (limited to 'eclass/git.eclass')
-rw-r--r--eclass/git.eclass20
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"