aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-11-08 14:13:42 +0100
committerGitHub <noreply@github.com>2021-11-08 14:13:42 +0100
commit6c2af1f201a925c2aa632737765685c72b642847 (patch)
tree64f4df04c2ef736cceb3fbc73644146ec58d23de /src
parentd9c9d0e0eba9313eb0361223605fdacdf8e0689a (diff)
parent8919b81dad58af365919bcf3ded4117e973344d3 (diff)
Merge pull request #5434 from timothyklim/git-url-submodules
Support building flakes from a Git repo url with submodules
Diffstat (limited to 'src')
-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);