diff options
author | Shea Levy <shea@shealevy.com> | 2016-09-02 06:35:48 -0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2016-09-02 06:35:48 -0400 |
commit | a91954f0c658e90b08f7f6e371305281e4d7d329 (patch) | |
tree | 6d7c3b6b61515e667bc34df8cd3e2cc152fd0ae4 /src/nix/copy.cc | |
parent | 87b189c2b326c790a35ff53a2d825c1ef48f644e (diff) |
Merge openStore and openStoreAt with default arguments
Diffstat (limited to 'src/nix/copy.cc')
-rw-r--r-- | src/nix/copy.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/copy.cc b/src/nix/copy.cc index de306cbf9..e8317dc39 100644 --- a/src/nix/copy.cc +++ b/src/nix/copy.cc @@ -43,8 +43,8 @@ struct CmdCopy : StorePathsCommand if (srcUri.empty() && dstUri.empty()) throw UsageError("you must pass ‘--from’ and/or ‘--to’"); - ref<Store> srcStore = srcUri.empty() ? store : openStoreAt(srcUri); - ref<Store> dstStore = dstUri.empty() ? store : openStoreAt(dstUri); + ref<Store> srcStore = srcUri.empty() ? store : openStore(srcUri); + ref<Store> dstStore = dstUri.empty() ? store : openStore(dstUri); std::string copiedLabel = "copied"; |