/[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.7 Revision 1.8
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.7 2013/09/19 09:42:32 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.8 2013/09/25 10:49:11 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.
176 176
177 # strip common prefixes to make paths more likely to match 177 # strip common prefixes to make paths more likely to match
178 # 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
179 # (but just one of the prefixes) 179 # (but just one of the prefixes)
180 case "${repo_name}" in 180 case "${repo_name}" in
181 # gnome.org... who else?
182 browse/*) repo_name=${repo_name#browse/};;
181 # cgit can proxy requests to git 183 # cgit can proxy requests to git
182 cgit/*) repo_name=${repo_name#cgit/};; 184 cgit/*) repo_name=${repo_name#cgit/};;
183 # pretty common 185 # pretty common
184 git/*) repo_name=${repo_name#git/};; 186 git/*) repo_name=${repo_name#git/};;
185 # gentoo.org 187 # gentoo.org

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

  ViewVC Help
Powered by ViewVC 1.1.20