aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy <git@timothyklim.com>2021-10-26 20:02:37 +0700
committerTimothy <git@timothyklim.com>2021-10-26 20:02:37 +0700
commit8919b81dad58af365919bcf3ded4117e973344d3 (patch)
treea81a053b2505f9e40c4753818fba7e2585b22d53
parent5667822edc24598788a1f90b923b6b41b733cb8b (diff)
Support building flakes from a Git repo url with submodules query parameter
-rw-r--r--src/libfetchers/git.cc2
1 files changed, 1 insertions, 1 deletions
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<bool> { value == "1" });
else
url2.query.emplace(name, value);