| Summary: | fetcher: git clone should allow use --depth to reduce data size | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Gavin <attinagaoxu> |
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED NOTABUG | QA Contact: | |
| Severity: | normal | ||
| Priority: | Undecided | CC: | poky.bs.watcher, poky.watcher, ross.burton |
| Version: | unspecified | ||
| Target Milestone: | 0.0.0 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Gavin
2023-09-05 11:47:11 UTC
This isn't quite as simple as you'd imagine. Shallow clones make mirroring harder, some servers refuse to do shallow clones from arbitrary SHAs, and incremental updates become trickier. However, what you're looking for is implemented, albeit at a global level instead of per-recipe: https://docs.yoctoproject.org/bitbake/dev/bitbake-user-manual/bitbake-user-manual-ref-variables.html#term-BB_GIT_SHALLOW (In reply to Ross Burton from comment #1) > This isn't quite as simple as you'd imagine. Shallow clones make mirroring > harder, some servers refuse to do shallow clones from arbitrary SHAs, and > incremental updates become trickier. > > However, what you're looking for is implemented, albeit at a global level > instead of per-recipe: > https://docs.yoctoproject.org/bitbake/dev/bitbake-user-manual/bitbake-user- > manual-ref-variables.html#term-BB_GIT_SHALLOW Thank you very much for the document. |