/[gentoo-x86]/eclass/git-2.eclass
Gentoo

Diff of /eclass/git-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.27 Revision 1.28
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 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-2.eclass,v 1.27 2011/12/14 23:40:18 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/git-2.eclass,v 1.28 2012/01/19 16:53:39 mgorny Exp $
4 4
5# @ECLASS: git-2.eclass 5# @ECLASS: git-2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Donnie Berkholz <dberkholz@gentoo.org> 7# Donnie Berkholz <dberkholz@gentoo.org>
8# Michał Górny <mgorny@gentoo.org> 8# Michał Górny <mgorny@gentoo.org>
276 EGIT_REPO_URI=${EGIT_REPO_URI%/} 276 EGIT_REPO_URI=${EGIT_REPO_URI%/}
277 if [[ ! ${EGIT_DIR} ]]; then 277 if [[ ! ${EGIT_DIR} ]]; then
278 if [[ ${EGIT_PROJECT} ]]; then 278 if [[ ${EGIT_PROJECT} ]]; then
279 clone_dir=${EGIT_PROJECT} 279 clone_dir=${EGIT_PROJECT}
280 else 280 else
281 clone_dir=${EGIT_REPO_URI##*/} 281 local strippeduri=${EGIT_REPO_URI%/.git}
282 clone_dir=${strippeduri##*/}
282 fi 283 fi
283 EGIT_DIR=${EGIT_STORE_DIR}/${clone_dir} 284 EGIT_DIR=${EGIT_STORE_DIR}/${clone_dir}
284 285
285 if [[ ${EGIT_OLD_CLONE} && ! -d ${EGIT_DIR} ]]; then 286 if [[ ${EGIT_OLD_CLONE} && ! -d ${EGIT_DIR} ]]; then
286 elog "${FUNCNAME}: ${CATEGORY}/${PF} will be cloned from old location." 287 elog "${FUNCNAME}: ${CATEGORY}/${PF} will be cloned from old location."

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20