Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 630558 - git-r3.eclass: Use shallow repository copies (pass --depth 1)
Summary: git-r3.eclass: Use shallow repository copies (pass --depth 1)
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-10 06:55 UTC by R030t1
Modified: 2017-09-10 23:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R030t1 2017-09-10 06:55:10 UTC
For Git ebuilds, please consider passing --depth 1 so that a full copy is not made. With packages like binutils a full clone constitutes a sizeable amount of disk space.
Comment 1 Zac Medico gentoo-dev 2017-09-10 07:39:13 UTC
There are some related variables in the eclass:

https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/git-r3.eclass
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-09-10 09:22:36 UTC
If you want to avoid full clones, set EGIT_CLONE_TYPE=shallow in your make.conf. We're not changing the default since shallow clones have their own problems.
Comment 3 R030t1 2017-09-10 23:29:09 UTC
Thank you both. There is a brief discussion of the limitations in git-r3.eclass. Is there more detail available elsewhere?