aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops/fetchTree.cc
diff options
context:
space:
mode:
authorTimothy DeHerrera <tim.deh@pm.me>2021-06-17 12:00:26 -0600
committerTimothy DeHerrera <tim.deh@pm.me>2021-06-17 12:00:26 -0600
commit769ca4e26d973660756de85b51efdb7fc36a00fd (patch)
treefc2f6721019baccfa8a61f7e5c1daf5cbe039c89 /src/libexpr/primops/fetchTree.cc
parente6150de90d8db101209fc6363f5f7696ee8192c4 (diff)
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 b8b99d4fa..9b0c4914b 100644
--- a/src/libexpr/primops/fetchTree.cc
+++ b/src/libexpr/primops/fetchTree.cc
@@ -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);