diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-01-19 16:53:39 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-01-19 16:53:39 +0000 |
commit | d63a8b9271c17f363bd41a87a231db2f57bf73af (patch) | |
tree | f29fb6ac3828c612e8112389195e1ccf684088e7 /eclass/git-2.eclass | |
parent | version bump. rename patch file (diff) | |
download | gentoo-2-d63a8b9271c17f363bd41a87a231db2f57bf73af.tar.gz gentoo-2-d63a8b9271c17f363bd41a87a231db2f57bf73af.tar.bz2 gentoo-2-d63a8b9271c17f363bd41a87a231db2f57bf73af.zip |
Strip .git from storedir; wrt bug #386845.
Diffstat (limited to 'eclass/git-2.eclass')
-rw-r--r-- | eclass/git-2.eclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/git-2.eclass b/eclass/git-2.eclass index f1ed79f98b4a..da90f00ee492 100644 --- a/eclass/git-2.eclass +++ b/eclass/git-2.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/git-2.eclass,v 1.27 2011/12/14 23:40:18 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/git-2.eclass,v 1.28 2012/01/19 16:53:39 mgorny Exp $ # @ECLASS: git-2.eclass # @MAINTAINER: @@ -278,7 +278,8 @@ git-2_prepare_storedir() { if [[ ${EGIT_PROJECT} ]]; then clone_dir=${EGIT_PROJECT} else - clone_dir=${EGIT_REPO_URI##*/} + local strippeduri=${EGIT_REPO_URI%/.git} + clone_dir=${strippeduri##*/} fi EGIT_DIR=${EGIT_STORE_DIR}/${clone_dir} |