diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-09-19 09:42:32 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-09-19 09:42:32 +0000 |
commit | 8f5fb55d4fed0022823664a47ad45a32508eb895 (patch) | |
tree | d28885379b5faa43fd4f3954d8df9e5af3425fe1 /eclass/git-r3.eclass | |
parent | Do not even create shallow repository when EGIT_NONSHALLOW is set. Otherwise,... (diff) | |
download | historical-8f5fb55d4fed0022823664a47ad45a32508eb895.tar.gz historical-8f5fb55d4fed0022823664a47ad45a32508eb895.tar.bz2 historical-8f5fb55d4fed0022823664a47ad45a32508eb895.zip |
Strip trailing slashes from repo URI when determining local copy directory.
Diffstat (limited to 'eclass/git-r3.eclass')
-rw-r--r-- | eclass/git-r3.eclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass index bfbc67d42a05..dd8cccb8535a 100644 --- a/eclass/git-r3.eclass +++ b/eclass/git-r3.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.6 2013/09/19 09:37:14 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.7 2013/09/19 09:42:32 mgorny Exp $ # @ECLASS: git-r3.eclass # @MAINTAINER: @@ -171,6 +171,9 @@ _git-r3_set_gitdir() { local repo_name=${1#*://*/} + # strip the trailing slash + repo_name=${repo_name%/} + # strip common prefixes to make paths more likely to match # e.g. git://X/Y.git vs https://X/git/Y.git # (but just one of the prefixes) |