lix/src/libexpr/primops
Eelco Dolstra d1165d8791
Require shallow clones to be requested explicitly
If you do a fetchTree on a Git repository, whether the result contains
a revCount attribute should not depend on whether that repository
happens to be a shallow clone or not. That would complicate caching a
lot and would be semantically messy. So applying fetchTree/fetchGit to
a shallow repository is now an error unless you pass the attribute
'shallow = true'. If 'shallow = true', we don't return revCount, even
if the repository is not actually shallow.

Note that Nix itself is not doing shallow clones at the moment. But it
could do so as an optimisation if the user specifies 'shallow = true'.

Issue #2988.
2020-03-17 22:35:29 +01:00
..
context.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
fetchGit.cc Add a test for shallow Git clones 2020-03-16 13:20:32 +01:00
fetchMercurial.cc Remove superfluous TreeInfo::rev field 2020-02-01 23:54:20 +01:00
fetchTree.cc Require shallow clones to be requested explicitly 2020-03-17 22:35:29 +01:00
fromTOML.cc Fix abort in fromTOML 2019-06-24 17:09:09 +02:00