From dbd18a63a7e8bb59efa9e556241786ac2169033a Mon Sep 17 00:00:00 2001 From: Winter Date: Thu, 4 Aug 2022 15:26:03 -0400 Subject: fetchgit: allow disabling cone mode for sparse checkouts, fix test --- doc/builders/fetchers.chapter.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/builders/fetchers.chapter.md b/doc/builders/fetchers.chapter.md index 947afe8e9fdb6..12d8a5d887fd4 100644 --- a/doc/builders/fetchers.chapter.md +++ b/doc/builders/fetchers.chapter.md @@ -91,7 +91,7 @@ Used with Git. Expects `url` to a Git repo, `rev`, and `sha256`. `rev` in this c Additionally, the following optional arguments can be given: `fetchSubmodules = true` makes `fetchgit` also fetch the submodules of a repository. If `deepClone` is set to true, the entire repository is cloned as opposing to just creating a shallow clone. `deepClone = true` also implies `leaveDotGit = true` which means that the `.git` directory of the clone won't be removed after checkout. -If only parts of the repository are needed, `sparseCheckout` can be used. This will prevent git from fetching unnecessary blobs from server, see [git sparse-checkout](https://git-scm.com/docs/git-sparse-checkout) and [git clone --filter](https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---filterltfilter-specgt) for more information: +If only parts of the repository are needed, `sparseCheckout` can be used. This will prevent git from fetching unnecessary blobs from server, see [git sparse-checkout](https://git-scm.com/docs/git-sparse-checkout) for more information: ```nix { stdenv, fetchgit }: @@ -101,8 +101,8 @@ stdenv.mkDerivation { src = fetchgit { url = "https://..."; sparseCheckout = '' - path/to/be/included - another/path + directory/to/be/included + another/directory ''; sha256 = "0000000000000000000000000000000000000000000000000000"; }; -- cgit 1.4.1