Merge pull request #4922 from nrdxp/default-submodules

libfetchers/git: fetch submodules by default
This commit is contained in:
Shea Levy
2021-09-07 05:48:23 -04:00
committed by GitHub
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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);