Project

General

Profile

Improvement #2157

Use shallow clone for GitCR (2.9.5)

Added by Henning Blohm about 1 year ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
z2-core
Target version:
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

Blocks z2-Environment - Improvement #2162: Port #2157 to 2.11Resolved07.01.2024

Actions

Also available in: Atom PDF