| Summary: | Request: Modify sys-kernel/zen-sources-9999.ebuild to only git clone --depth 1 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Robert Cabrera <robcab666> |
| Component: | New packages | Assignee: | Markos Chandras (RETIRED) <hwoarang> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | wired |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Robert Cabrera
2011-09-27 15:35:13 UTC
That can cause problems. If a later update includes a reverts of some older commit, then things may break. I don't think it is safe to do that, like Chí-Thanh said, either I added a "minimal" use flag which is enabled by default. Please test if it actually works and report bug here. Thank you (In reply to comment #1) > That can cause problems. If a later update includes a reverts of some older > commit, then things may break. `git revert` only refers to the commit that is being reverted at the time the command is run. The resulting commit bears no actual reference to the original commit it is undoing, other than in the commit message. So there is no harm in pulling such a commit even if you do not have the original commit it is reverting (due to having a shallow clone locally). Is that what you meant by "things may break"? I finally tested this. It does not work. > * The specific snippet of code: > * ${MOVE_COMMAND} "${EGIT_SOURCEDIR}" || die "${FUNCNAME}: sync to \"${EGIT_SOURCEDIR}\" failed"; The actual message: > GIT NEW clone --> > repository: git://zen-kernel.org/kernel/zen-stable.git > at the commit: 52cb5c09163d2b5b19b3da9f09479b7f48bab97d > branch: master > storage directory: "/usr/portage/distfiles/egit-src/zen-stable" > checkout type: bare repository > Cloning into '/var/tmp/portage/sys-kernel/zen-sources-9999/work/linux-2.6.99-zen0'... > fatal: attempt to fetch/clone from a shallow repository > fatal: The remote end hung up unexpectedly > * ERROR: sys-kernel/zen-sources-9999 failed (unpack phase): > * git-2_move_source: sync to "/var/tmp/portage/sys-kernel/zen-sources-9999/work/linux-2.6.99-zen0" failed So it looks like the git-2 eclass doesn't support shallow clones (?). |