aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/misc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/misc.cc')
-rw-r--r--src/libstore/misc.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstore/misc.cc b/src/libstore/misc.cc
index fb985c97b..e0bb1fab0 100644
--- a/src/libstore/misc.cc
+++ b/src/libstore/misc.cc
@@ -41,8 +41,7 @@ void Store::computeFSClosure(const StorePathSet & startPaths,
StorePathSet res;
auto info = fut.get();
for (auto& ref : info->references)
- if (ref != path)
- res.insert(ref);
+ res.insert(ref);
if (includeOutputs && path.isDerivation())
for (auto& [_, maybeOutPath] : queryPartialDerivationOutputMap(path))