/[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.33 Revision 1.34
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 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.33 2014/03/02 11:48:05 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.34 2014/03/02 11:48:28 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.
447 # if it was a tag, ls-remote obtained a hash 447 # if it was a tag, ls-remote obtained a hash
448 if [[ ${tagref} ]]; then 448 if [[ ${tagref} ]]; then
449 # tag 449 # tag
450 fetch_l=refs/tags/${remote_ref} 450 fetch_l=refs/tags/${remote_ref}
451 else 451 else
452 # commit
452 # commit, so we need to fetch the branch 453 # so we need to fetch the branch
453 # and guess where it takes us...
454 if [[ ${branch} ]]; then 454 if [[ ${branch} ]]; then
455 fetch_l=${branch} 455 fetch_l=${branch}
456 else 456 else
457 fetch_l=HEAD 457 fetch_l=HEAD
458 fi
459
460 # fetching by commit in shallow mode? can't do.
461 if [[ ${EGIT_CLONE_TYPE} == shallow ]]; then
462 local EGIT_CLONE_TYPE=single
458 fi 463 fi
459 fi 464 fi
460 fi 465 fi
461 466
462 if [[ ${fetch_l} == HEAD ]]; then 467 if [[ ${fetch_l} == HEAD ]]; then

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

  ViewVC Help
Powered by ViewVC 1.1.20