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

Diff of /eclass/git.eclass

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

Revision 1.32 Revision 1.35
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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/Attic/git.eclass,v 1.32 2009/12/16 20:35:38 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/git.eclass,v 1.35 2010/01/13 20:04:19 scarabeus Exp $
4 4
5# @ECLASS: git.eclass 5# @ECLASS: git.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Tomas Chvatal <scarabeus@gentoo.org> 7# Tomas Chvatal <scarabeus@gentoo.org>
8# Donnie Berkholz <dberkholz@gentoo.org> 8# Donnie Berkholz <dberkholz@gentoo.org>
297 # export the git version 297 # export the git version
298 export EGIT_VERSION="${cursha1}" 298 export EGIT_VERSION="${cursha1}"
299 299
300 [[ ${EGIT_COMMIT} != ${EGIT_BRANCH} ]] && elog " commit: ${EGIT_COMMIT}" 300 [[ ${EGIT_COMMIT} != ${EGIT_BRANCH} ]] && elog " commit: ${EGIT_COMMIT}"
301 ${elogcmd} " branch: ${EGIT_BRANCH}" 301 ${elogcmd} " branch: ${EGIT_BRANCH}"
302 ${elogcmd} " storage directory: \"${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}\"" 302 ${elogcmd} " storage directory: \"${GIT_DIR}\""
303 303
304 # unpack to the ${S} 304 # unpack to the ${S}
305 popd &> /dev/null 305 popd &> /dev/null
306 debug-print "cp -aR \"${GIT_DIR}\" \"${S}\"" 306 debug-print "git clone -l \"${GIT_DIR}\" \"${S}\""
307 cp -aR "${GIT_DIR}" "${S}" 307 git clone -l "${GIT_DIR}" "${S}"
308 308
309 # set correct branch and the tree ebuild specified 309 # set correct branch and the tree ebuild specified
310 pushd "${S}" > /dev/null 310 pushd "${S}" > /dev/null
311 local branchname=branch-${EGIT_BRANCH} src=origin/${EGIT_BRANCH} 311 local branchname=branch-${EGIT_BRANCH} src=origin/${EGIT_BRANCH}
312 if [[ ${EGIT_COMMIT} != ${EGIT_BRANCH} ]]; then 312 if [[ ${EGIT_COMMIT} != ${EGIT_BRANCH} ]]; then

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.35

  ViewVC Help
Powered by ViewVC 1.1.20