Improvement #2157
Use shallow clone for GitCR (2.9.5)
Start date:
03.11.2023
Due date:
% Done:
0%
Estimated time:
origin:
Description
As Jgit supports it now. What we really want is treeless clones as described here:
https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/
however that is not available, which is why we support shallow clones for now.
Acceptance Criteria¶
- There is a configuration property gitcr.depth that can be used to specify a cloning depth (i.e. corresponding to --depth and hence using 1 leads to a shallow clone).
- The fix is merged into master
Implementation Hints¶
See also https://projects.eclipse.org/projects/technology.jgit/releases/6.3.0 and https://projects.eclipse.org/projects/technology.jgit/releases/6.5.0
Related issues