about summary refs log tree commit diff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-09-08T12·46+0200
committerEelco Dolstra <edolstra@gmail.com>2017-09-08T12·46+0200
commit3cf1705583ee64137cdebf8f4e50ccffdaf7c756 (patch)
tree486365e7bf923c79fc5d756e6ce2074756108b01 /src/nix
parent8f6b347abd93706e36cf67fc4c53a46c7ad1ad49 (diff)
nix copy: Don't open the --from store twice
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/command.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/command.cc b/src/nix/command.cc
index f90d848f2a40..058a7548c893 100644
--- a/src/nix/command.cc
+++ b/src/nix/command.cc
@@ -97,7 +97,7 @@ ref<Store> StoreCommand::createStore()
 
 void StoreCommand::run()
 {
-    run(createStore());
+    run(getStore());
 }
 
 StorePathsCommand::StorePathsCommand()