aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDonnie Berkholz <spyderous@gentoo.org>2006-06-24 13:21:43 -0700
committerDonnie Berkholz <donnie@comet.(none)>2006-06-24 13:21:43 -0700
commit2ee4ba2b077b7a4de7d35c07acd6618d2bbc959b (patch)
tree051942e90867c5b9ff43c1470ad397f900baabbc /eclass
parentxgl: Need to set EGIT_BRANCH above the inherit line (diff)
downloaddberkholz-2ee4ba2b077b7a4de7d35c07acd6618d2bbc959b.tar.gz
dberkholz-2ee4ba2b077b7a4de7d35c07acd6618d2bbc959b.tar.bz2
dberkholz-2ee4ba2b077b7a4de7d35c07acd6618d2bbc959b.zip
git.eclass: Set GIT_DIR on updates, or else they don't work.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/git.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/git.eclass b/eclass/git.eclass
index c135ab0..56725fb 100644
--- a/eclass/git.eclass
+++ b/eclass/git.eclass
@@ -201,7 +201,7 @@ function git_fetch() {
local oldsha1=$(git rev-parse ${EGIT_BRANCH})
- ${EGIT_UPDATE_CMD} ${EGIT_OPTIONS} origin ${EGIT_BRANCH}:${EGIT_BRANCH} \
+ GIT_DIR=${EGIT_PROJECT} ${EGIT_UPDATE_CMD} ${EGIT_OPTIONS} origin ${EGIT_BRANCH}:${EGIT_BRANCH} \
|| die "${EGIT}: can't update from ${EGIT_REPO_URI}."
${EGIT_DIFFSTAT_CMD} ${oldsha1}..${EGIT_BRANCH}