From 0008b326ffc39c86be2ae4352bdddc03f01840cc Mon Sep 17 00:00:00 2001 From: Christoph Weiss Date: Wed, 18 Sep 2019 08:45:46 +0200 Subject: Add support for `depth` option in wrap-git This allows cloning subprojects shallowly. It works recursively for a subproject's submodules in case `clone-recursive` is set to `true`. --- docs/markdown/Wrap-dependency-system-manual.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/markdown/Wrap-dependency-system-manual.md') diff --git a/docs/markdown/Wrap-dependency-system-manual.md b/docs/markdown/Wrap-dependency-system-manual.md index 619492a..22ba589 100644 --- a/docs/markdown/Wrap-dependency-system-manual.md +++ b/docs/markdown/Wrap-dependency-system-manual.md @@ -143,6 +143,14 @@ automatically by adding the following *(since 0.48.0)*: clone-recursive = true ``` +Setting the clone depth is supported using the `depth` directive *(since 0.52.0)*. +Note that git always allow shallowly cloning branches, but in order to clone commit ids +shallowly, the server must support `uploadpack.allowReachableSHA1InWant=true`. + +```ini +depth = 1 +``` + ## Using wrapped projects Wraps provide a convenient way of obtaining a project into your subproject directory. -- cgit v1.1