diff options
| author | Jared Baur <jaredbaur@fastmail.com> | 2024-02-03 19:57:06 -0800 |
|---|---|---|
| committer | Philip Taron <philip.taron@gmail.com> | 2025-07-16 22:13:22 -0700 |
| commit | 5cd869caa4ea1bf1bde71731ecc96b24e1bdcc2d (patch) | |
| tree | ebf370b2953e95344d86c9d6f4ee63882f59310c /pkgs/build-support/fetchgit | |
| parent | wine64Packages.{unstable,staging}: 10.7 -> 10.12 (#413303) (diff) | |
| download | nixpkgs-5cd869caa4ea1bf1bde71731ecc96b24e1bdcc2d.tar.gz | |
fetchgit: pass --checkout when fetching submodules
For projects that have `submodule.$name.update` set to something other
than the default value of "checkout", this change will ensure those
submodules are fetched as well.
Diffstat (limited to 'pkgs/build-support/fetchgit')
| -rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 9d55c9019e08..f8dd93912644 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -214,8 +214,8 @@ checkout_ref(){ init_submodules(){ # shallow with leaveDotGit will change hashes [[ -z "$deepClone" ]] && [[ -z "$leaveDotGit" ]] && \ - clean_git submodule update --init --recursive -j ${NIX_BUILD_CORES:-1} --progress --depth 1 || \ - clean_git submodule update --init --recursive -j ${NIX_BUILD_CORES:-1} --progress + clean_git submodule update --init --recursive --checkout -j ${NIX_BUILD_CORES:-1} --progress --depth 1 || \ + clean_git submodule update --init --recursive --checkout -j ${NIX_BUILD_CORES:-1} --progress } clone(){ |
