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

Diff of /eclass/git-r3.eclass

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

Revision 1.6 Revision 1.7
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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-r3.eclass,v 1.6 2013/09/19 09:37:14 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.7 2013/09/19 09:42:32 mgorny Exp $
4 4
5# @ECLASS: git-r3.eclass 5# @ECLASS: git-r3.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Michał Górny <mgorny@gentoo.org> 7# Michał Górny <mgorny@gentoo.org>
8# @BLURB: Eclass for fetching and unpacking git repositories. 8# @BLURB: Eclass for fetching and unpacking git repositories.
168# a canonical URI to the repository. 168# a canonical URI to the repository.
169_git-r3_set_gitdir() { 169_git-r3_set_gitdir() {
170 debug-print-function ${FUNCNAME} "$@" 170 debug-print-function ${FUNCNAME} "$@"
171 171
172 local repo_name=${1#*://*/} 172 local repo_name=${1#*://*/}
173
174 # strip the trailing slash
175 repo_name=${repo_name%/}
173 176
174 # strip common prefixes to make paths more likely to match 177 # strip common prefixes to make paths more likely to match
175 # e.g. git://X/Y.git vs https://X/git/Y.git 178 # e.g. git://X/Y.git vs https://X/git/Y.git
176 # (but just one of the prefixes) 179 # (but just one of the prefixes)
177 case "${repo_name}" in 180 case "${repo_name}" in

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20