summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2009-05-09 15:10:47 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2009-05-09 15:10:47 +0000
commit83e9700e92554d86f3739ea1c4c774a37f24c1e2 (patch)
tree9acddb66fe95abd54716fbf080d84634cccecea9 /eclass/git.eclass
parentInitial commit for pictureflow application (diff)
downloadgentoo-2-83e9700e92554d86f3739ea1c4c774a37f24c1e2.tar.gz
gentoo-2-83e9700e92554d86f3739ea1c4c774a37f24c1e2.tar.bz2
gentoo-2-83e9700e92554d86f3739ea1c4c774a37f24c1e2.zip
export EGIT_VERSION. Per bug #268622.
Diffstat (limited to 'eclass/git.eclass')
-rw-r--r--eclass/git.eclass14
1 files changed, 8 insertions, 6 deletions
diff --git a/eclass/git.eclass b/eclass/git.eclass
index cb93645760b6..91d016000fe1 100644
--- a/eclass/git.eclass
+++ b/eclass/git.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.25 2009/04/14 21:46:45 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.26 2009/05/09 15:10:47 scarabeus Exp $
# @ECLASS: git.eclass
# @MAINTAINER:
@@ -198,16 +198,15 @@ git_fetch() {
${EGIT_FETCH_CMD} ${EGIT_OPTIONS} "${EGIT_REPO_URI}" ${EGIT_PROJECT} \
|| die "${EGIT}: can't fetch from ${EGIT_REPO_URI}."
- oldsha1=$(git rev-parse ${EGIT_BRANCH})
- ${elogcmd} " at the commit: ${oldsha1}"
-
+ cursha1=$(git rev-parse ${EGIT_BRANCH})
+ ${elogcmd} " at the commit: ${cursha1}"
# We use --bare cloning, so git doesn't do this for us.
git config remote.origin.url "${EGIT_REPO_URI}"
elif [[ -n ${EGIT_OFFLINE} ]] ; then
- oldsha1=$(git rev-parse ${EGIT_BRANCH})
+ cursha1=$(git rev-parse ${EGIT_BRANCH})
${elogcmd} "GIT offline update -->"
${elogcmd} " repository: ${EGIT_REPO_URI}"
- ${elogcmd} " at the commit: ${oldsha1}"
+ ${elogcmd} " at the commit: ${cursha1}"
else
# Git urls might change, so unconditionally set it here
git config remote.origin.url "${EGIT_REPO_URI}"
@@ -238,6 +237,9 @@ git_fetch() {
git gc $(${EGIT_PRUNE} && echo '--prune')
eend $?
fi
+
+ # export the git version
+ export EGIT_VERSION="${cursha1}"
[[ ${EGIT_TREE} != ${EGIT_BRANCH} ]] && elog " tree: ${EGIT_TREE}"
${elogcmd} " branch: ${EGIT_BRANCH}"