/[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.20 Revision 1.21
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.20 2013/10/27 13:33:44 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.21 2013/10/27 13:44:35 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.
632 fi 632 fi
633 633
634 # keep this *after* submodules 634 # keep this *after* submodules
635 export EGIT_DIR=${GIT_DIR} 635 export EGIT_DIR=${GIT_DIR}
636 export EGIT_VERSION=${new_commit_id} 636 export EGIT_VERSION=${new_commit_id}
637
638 # create a fake '.git' directory to satisfy 'git rev-parse HEAD'
639 GIT_DIR=${GIT_WORK_TREE}/.git
640 git init || die
641 echo "${EGIT_VERSION}" > "${GIT_WORK_TREE}"/.git/HEAD || die
637} 642}
638 643
639# @FUNCTION: git-r3_peek_remote_ref 644# @FUNCTION: git-r3_peek_remote_ref
640# @USAGE: [<repo-uri> [<remote-ref>]] 645# @USAGE: [<repo-uri> [<remote-ref>]]
641# @DESCRIPTION: 646# @DESCRIPTION:

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20