diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 493137361..2c4d0302c 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -803,7 +803,7 @@ makeCopyPathMessage(const StoreConfig & srcCfg, const StoreConfig & dstCfg, std: /* At this point StoreReference **must** be resolved. */ const auto & specified = std::get(ref.variant); const auto & scheme = specified.scheme; - return (scheme == "local" || scheme == "unix") && specified.authority.empty() && ref.params.empty(); + return (scheme == "local" || scheme == "unix") && specified.authority.empty(); }; if (isShorthand(src))