| 1 | # Copyright 1999-2006 Gentoo Foundation |
1 | # Copyright 1999-2006 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.11 2008/06/05 15:44:01 zlin Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.12 2008/06/15 17:47:57 zlin Exp $ |
| 4 | |
4 | |
| 5 | ## --------------------------------------------------------------------------- # |
5 | ## --------------------------------------------------------------------------- # |
| 6 | # subversion.eclass author: Akinori Hattori <hattya@gentoo.org> |
6 | # subversion.eclass author: Akinori Hattori <hattya@gentoo.org> |
| 7 | # modified for git by Donnie Berkholz <spyderous@gentoo.org> |
7 | # modified for git by Donnie Berkholz <spyderous@gentoo.org> |
| 8 | # improved by Fernando J. Pereda <ferdy@gentoo.org> |
8 | # improved by Fernando J. Pereda <ferdy@gentoo.org> |
| … | |
… | |
| 188 | [[ -z ${EGIT_REPO_URI##*/} ]] && EGIT_REPO_URI="${EGIT_REPO_URI%/}" |
188 | [[ -z ${EGIT_REPO_URI##*/} ]] && EGIT_REPO_URI="${EGIT_REPO_URI%/}" |
| 189 | EGIT_CLONE_DIR="${EGIT_PROJECT}" |
189 | EGIT_CLONE_DIR="${EGIT_PROJECT}" |
| 190 | |
190 | |
| 191 | debug-print "${FUNCNAME}: EGIT_OPTIONS = \"${EGIT_OPTIONS}\"" |
191 | debug-print "${FUNCNAME}: EGIT_OPTIONS = \"${EGIT_OPTIONS}\"" |
| 192 | |
192 | |
| 193 | export GIT_DIR="${EGIT_CLONE_DIR}" |
193 | export GIT_DIR="${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}" |
| 194 | |
194 | |
| 195 | if [[ ! -d ${EGIT_CLONE_DIR} ]] ; then |
195 | if [[ ! -d ${EGIT_CLONE_DIR} ]] ; then |
| 196 | # first clone |
196 | # first clone |
| 197 | einfo "git clone start -->" |
197 | einfo "git clone start -->" |
| 198 | einfo " repository: ${EGIT_REPO_URI}" |
198 | einfo " repository: ${EGIT_REPO_URI}" |