diff options
author | figsoda <figsoda@pm.me> | 2023-03-15 11:29:01 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2023-03-15 11:29:01 -0400 |
commit | 31d588db8b92b69363525a577f5cb6413c8eae15 (patch) | |
tree | 439e640d9e3c3304ee611e1b330b1b3c5f5a3891 /src | |
parent | 9ec1a3ae603c008bc135a12bcf746fdb7379e694 (diff) |
respect allRefs=1 when using `nix flake prefetch`
Diffstat (limited to 'src')
-rw-r--r-- | src/libfetchers/git.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/git.cc b/src/libfetchers/git.cc index 309a143f5..1da8c9609 100644 --- a/src/libfetchers/git.cc +++ b/src/libfetchers/git.cc @@ -266,7 +266,7 @@ struct GitInputScheme : InputScheme for (auto & [name, value] : url.query) { if (name == "rev" || name == "ref") attrs.emplace(name, value); - else if (name == "shallow" || name == "submodules") + else if (name == "shallow" || name == "submodules" || name == "allRefs") attrs.emplace(name, Explicit<bool> { value == "1" }); else url2.query.emplace(name, value); |