mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Merge pull request #4922 from nrdxp/default-submodules
libfetchers/git: fetch submodules by default
This commit is contained in:
commit
6678e98411
3 changed files with 8 additions and 8 deletions
|
@ -45,7 +45,7 @@ void emitTreeAttrs(
|
|||
|
||||
if (input.getType() == "git")
|
||||
mkBool(*state.allocAttr(v, state.symbols.create("submodules")),
|
||||
fetchers::maybeGetBoolAttr(input.attrs, "submodules").value_or(false));
|
||||
fetchers::maybeGetBoolAttr(input.attrs, "submodules").value_or(true));
|
||||
|
||||
if (auto revCount = input.getRevCount())
|
||||
mkInt(*state.allocAttr(v, state.symbols.create("revCount")), *revCount);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue