aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDonnie Berkholz <donnie@comet.(none)>2006-05-11 23:59:23 -0700
committerDonnie Berkholz <donnie@comet.(none)>2006-05-11 23:59:23 -0700
commit7da7a91cff2141287a0f5794c06a5564d5357760 (patch)
treea794d36cd6bc49f5a91c8ffcfc54e8d5896ebe15 /eclass
parentAdd git eclass from http://gentoo.zugaina.org/. (diff)
downloaddberkholz-7da7a91cff2141287a0f5794c06a5564d5357760.tar.gz
dberkholz-7da7a91cff2141287a0f5794c06a5564d5357760.tar.bz2
dberkholz-7da7a91cff2141287a0f5794c06a5564d5357760.zip
Make some cleanups. Of note is the change in the update command from checkout to
pull.
Diffstat (limited to '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 e058d2a..282656b 100644
--- a/eclass/git.eclass
+++ b/eclass/git.eclass
@@ -40,17 +40,17 @@ DESCRIPTION="GIT eclass"
DEPEND="dev-util/git"
-## -- EGIT_STORE_DIR: subversion sources store directory
+## -- EGIT_STORE_DIR: git sources store directory
#
EGIT_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/git-src"
-## -- EGIT_FETCH_CMD: subversion fetch command
+## -- EGIT_FETCH_CMD: git fetch command
#
-# default: git checkout
+# default: git pull
#
[ -z "${EGIT_FETCH_CMD}" ] && EGIT_FETCH_CMD="git clone -q"
-[ -z "${EGIT_UPDATE_CMD}" ] && EGIT_UPDATE_CMD="git checkout"
+[ -z "${EGIT_UPDATE_CMD}" ] && EGIT_UPDATE_CMD="git pull"
## -- EGIT_REPO_URI: repository uri
@@ -60,7 +60,7 @@ EGIT_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/git-src"
## -- EGIT_PROJECT: project name of your ebuild
#
-# git eclass will check out the subversion repository like:
+# git eclass will check out the git repository like:
#
# ${EGIT_STORE_DIR}/${EGIT_PROJECT}/${EGIT_REPO_URI##*/}
#
@@ -109,7 +109,7 @@ function git_fetch() {
einfo " checkout from: ${EGIT_REPO_URI}"
${EGIT_FETCH_CMD} ${EGIT_REPO_URI} ${EGIT_PROJECT} || die "${EGIT}: can't fetch from ${EGIT_REPO_URI}."
- einfo " checkouted in: ${EGIT_STORE_DIR}/${EGIT_CO_DIR}"
+ einfo " checked out in: ${EGIT_STORE_DIR}/${EGIT_CO_DIR}"
else
# update working copy
@@ -136,4 +136,6 @@ function git_src_unpack() {
unpack ${A}
fi
git_fetch || die "${EGIT}: unknown problem in git_fetch()."
+
+ cd ${S}
}