From 8919b81dad58af365919bcf3ded4117e973344d3 Mon Sep 17 00:00:00 2001 From: Timothy Date: Tue, 26 Oct 2021 20:02:37 +0700 Subject: [PATCH] Support building flakes from a Git repo url with submodules query parameter --- src/libfetchers/git.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libfetchers/git.cc b/src/libfetchers/git.cc index 8468d2afc..a3f4e42a3 100644 --- a/src/libfetchers/git.cc +++ b/src/libfetchers/git.cc @@ -51,7 +51,7 @@ struct GitInputScheme : InputScheme for (auto &[name, value] : url.query) { if (name == "rev" || name == "ref") attrs.emplace(name, value); - else if (name == "shallow") + else if (name == "shallow" || name == "submodules") attrs.emplace(name, Explicit { value == "1" }); else url2.query.emplace(name, value);