aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops/fetchTree.cc
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2021-09-07 05:48:23 -0400
committerGitHub <noreply@github.com>2021-09-07 05:48:23 -0400
commit6678e98411cd3bfe8143a4ba1b35d1451babce32 (patch)
tree0d23a6e68ccdd591a8d2fee127645598a05e4217 /src/libexpr/primops/fetchTree.cc
parent90b2dd570cbd8313a8cf45b3cf66ddef2bb06e07 (diff)
parent769ca4e26d973660756de85b51efdb7fc36a00fd (diff)
Merge pull request #4922 from nrdxp/default-submodules
libfetchers/git: fetch submodules by default
Diffstat (limited to 'src/libexpr/primops/fetchTree.cc')
-rw-r--r--src/libexpr/primops/fetchTree.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchTree.cc b/src/libexpr/primops/fetchTree.cc
index 730db84ed..9990a0207 100644
--- a/src/libexpr/primops/fetchTree.cc
+++ b/src/libexpr/primops/fetchTree.cc
@@ -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);