aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-03-15 17:58:01 +0100
committerGitHub <noreply@github.com>2023-03-15 17:58:01 +0100
commit1b8c13cbbaf26aabf2facd339bb1da479a88113c (patch)
tree439e640d9e3c3304ee611e1b330b1b3c5f5a3891
parent9ec1a3ae603c008bc135a12bcf746fdb7379e694 (diff)
parent31d588db8b92b69363525a577f5cb6413c8eae15 (diff)
Merge pull request #8050 from figsoda/allrefs
respect allRefs=1 when using `nix flake prefetch`
-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 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);