1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 03:56:01 +01:00

Merge pull request #13756 from xokdvium/fix-copy-path-message

libstore: Fix makeCopyPathMessage
This commit is contained in:
Sergei Zimmerman 2025-08-15 02:10:41 +03:00 committed by GitHub
commit f64000e3f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -803,7 +803,7 @@ makeCopyPathMessage(const StoreConfig & srcCfg, const StoreConfig & dstCfg, std:
/* At this point StoreReference **must** be resolved. */
const auto & specified = std::get<StoreReference::Specified>(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))