aboutsummaryrefslogtreecommitdiff
path: root/src/nix-collect-garbage
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2020-03-20 14:36:10 +0100
committerJulian Stecklina <js@alien8.de>2020-03-29 22:29:58 +0200
commitf686efeed4d6305101c56136855e2d6b87e649e4 (patch)
treeb388a1a6260cf9f90fe3cc74ddeaacd6ee7337f6 /src/nix-collect-garbage
parentcc522d0d23b71faeac95998d264abe14ddceeed5 (diff)
fetchGit: fix submodule corner case by fetching all refs from cacheDir
Due to fetchGit not checking if rev is an ancestor of ref (there is even a FIXME comment about it in the code), the cache repo might not have the ref even though it has the rev. This doesn't matter when submodule = false, but the submodule = true code blows up because it tries to fetch the (missing) ref from the cache repo. Fix this in the simplest way possible: fetch all refs from the local cache repo when submodules = true. TODO: Add tests.
Diffstat (limited to 'src/nix-collect-garbage')
0 files changed, 0 insertions, 0 deletions