Closed smithsz closed 2 years ago
Creates a shallow clone with a history truncated to the specified number of commits.
Support locker shallow clone depth configuration. For example:
"locker": { "depth": 10, "repo_url": "https://github.ibm.com/foo/evidence-collector" }
This creates a shallow clone with a history truncated to the specified number of commits (i.e. 10 commits).
Reduce clone time when pulling large repositories.
Clone evidence repositories using the git-clone --depth flag.
--depth
Tested locally.
Closes https://github.com/ComplianceAsCode/auditree-framework/issues/135.
Creates a shallow clone with a history truncated to the specified number of commits.
What
Support locker shallow clone depth configuration. For example:
This creates a shallow clone with a history truncated to the specified number of commits (i.e. 10 commits).
Why
Reduce clone time when pulling large repositories.
How
Clone evidence repositories using the git-clone
--depth
flag.Test
Tested locally.
Context
Closes https://github.com/ComplianceAsCode/auditree-framework/issues/135.