Merge pull request #5434 from timothyklim/git-url-submodules

Support building flakes from a Git repo url with submodules
This commit is contained in:
Eelco Dolstra 2021-11-08 14:13:42 +01:00 committed by GitHub
commit 6c2af1f201
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);