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

Diff of /eclass/git.eclass

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

Revision 1.6 Revision 1.7
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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.6 2007/04/24 16:35:01 ferdy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/git.eclass,v 1.7 2007/11/14 20:43:43 ferdy Exp $
4 4
5## --------------------------------------------------------------------------- # 5## --------------------------------------------------------------------------- #
6# subversion.eclass author: Akinori Hattori <hattya@gentoo.org> 6# subversion.eclass author: Akinori Hattori <hattya@gentoo.org>
7# modified for git by Donnie Berkholz <spyderous@gentoo.org> 7# modified for git by Donnie Berkholz <spyderous@gentoo.org>
8# improved by Fernando J. Pereda <ferdy@gentoo.org> 8# improved by Fernando J. Pereda <ferdy@gentoo.org>
193 193
194 ${EGIT_FETCH_CMD} ${EGIT_OPTIONS} "${EGIT_REPO_URI}" ${EGIT_PROJECT} \ 194 ${EGIT_FETCH_CMD} ${EGIT_OPTIONS} "${EGIT_REPO_URI}" ${EGIT_PROJECT} \
195 || die "${EGIT}: can't fetch from ${EGIT_REPO_URI}." 195 || die "${EGIT}: can't fetch from ${EGIT_REPO_URI}."
196 196
197 # We use --bare cloning, so git doesn't do this for us. 197 # We use --bare cloning, so git doesn't do this for us.
198 git repo-config remote.origin.url "${EGIT_REPO_URI}" 198 git config remote.origin.url "${EGIT_REPO_URI}"
199 else 199 else
200 # Git urls might change, so unconditionally set it here
201 git config remote.origin.url "${EGIT_REPO_URI}"
202
200 # fetch updates 203 # fetch updates
201 einfo "git update start -->" 204 einfo "git update start -->"
202 einfo " repository: ${EGIT_REPO_URI}" 205 einfo " repository: ${EGIT_REPO_URI}"
203 206
204 local oldsha1=$(git rev-parse ${EGIT_BRANCH}) 207 local oldsha1=$(git rev-parse ${EGIT_BRANCH})

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

  ViewVC Help
Powered by ViewVC 1.1.20