Support building flakes from a Git repo url with submodules query parameter
This commit is contained in:
parent
5667822edc
commit
8919b81dad
|
@ -51,7 +51,7 @@ struct GitInputScheme : InputScheme
|
||||||
for (auto &[name, value] : url.query) {
|
for (auto &[name, value] : url.query) {
|
||||||
if (name == "rev" || name == "ref")
|
if (name == "rev" || name == "ref")
|
||||||
attrs.emplace(name, value);
|
attrs.emplace(name, value);
|
||||||
else if (name == "shallow")
|
else if (name == "shallow" || name == "submodules")
|
||||||
attrs.emplace(name, Explicit<bool> { value == "1" });
|
attrs.emplace(name, Explicit<bool> { value == "1" });
|
||||||
else
|
else
|
||||||
url2.query.emplace(name, value);
|
url2.query.emplace(name, value);
|
||||||
|
|
Loading…
Reference in a new issue