Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 185466 Details for
Bug 255451
Shallow clone of git repo in eclass
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fallback behaviour
git.eclass.diff (text/plain), 1.11 KB, created by
Maciej Mrozowski
on 2009-03-18 22:49:29 UTC
(
hide
)
Description:
fallback behaviour
Filename:
MIME Type:
Creator:
Maciej Mrozowski
Created:
2009-03-18 22:49:29 UTC
Size:
1.11 KB
patch
obsolete
>--- /usr/portage/eclass/git.eclass 2009-02-19 18:36:00.000000000 +0100 >+++ git.eclass 2009-03-18 23:37:26.000000000 +0100 >@@ -40,7 +40,7 @@ > > ## -- EGIT_FETCH_CMD: git clone command > # >-EGIT_FETCH_CMD="git clone --bare --depth 1" >+EGIT_FETCH_CMD="git clone --bare" > > ## -- EGIT_UPDATE_CMD: git fetch command > # >@@ -189,6 +189,12 @@ > [[ -z ${EGIT_REPO_URI##*/} ]] && EGIT_REPO_URI="${EGIT_REPO_URI%/}" > EGIT_CLONE_DIR="${EGIT_PROJECT}" > >+ # determine whether to perform shallow clone >+ local EGIT_FETCH_OPTS >+ if [[ ${EGIT_BRANCH} = ${EGIT_TREE} ]] && [[ ${EGIT_BRANCH} = master ]] ; then >+ EGIT_FETCH_OPTS="--depth 1" >+ fi >+ > debug-print "${FUNCNAME}: EGIT_OPTIONS = \"${EGIT_OPTIONS}\"" > > export GIT_DIR="${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}" >@@ -198,7 +204,7 @@ > einfo "git clone start -->" > einfo " repository: ${EGIT_REPO_URI}" > >- ${EGIT_FETCH_CMD} ${EGIT_OPTIONS} "${EGIT_REPO_URI}" ${EGIT_PROJECT} \ >+ ${EGIT_FETCH_CMD} ${EGIT_FETCH_OPTS} ${EGIT_OPTIONS} "${EGIT_REPO_URI}" ${EGIT_PROJECT} \ > || die "${EGIT}: can't fetch from ${EGIT_REPO_URI}." > > # We use --bare cloning, so git doesn't do this for us.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 255451
:
178944
| 185466