1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

libfetchers/git: fetch submodules by default

This commit is contained in:
Timothy DeHerrera 2021-06-17 12:00:26 -06:00
parent e6150de90d
commit 769ca4e26d
No known key found for this signature in database
GPG key ID: 19B7285E0F84A536
3 changed files with 8 additions and 8 deletions

View file

@ -44,7 +44,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);