about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-18T18·40+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-18T18·40+0100
commita52fd0dbd0200ba165d1da8a4bf2bc36a455a0d1 (patch)
tree4758ea28305a2a93f58f3a5f20296b3ebed4042d
parent02daf2ec0b433ffab58979642c2663b3cd4c5232 (diff)
parentcfc874ee52008f523a86b5079243deabaecb62e4 (diff)
Merge branch 'issue-13' of https://github.com/tsion/nix-repl
-rw-r--r--nix-repl.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/nix-repl.cc b/nix-repl.cc
index 3834e572a2d8..f4850271dc6a 100644
--- a/nix-repl.cc
+++ b/nix-repl.cc
@@ -78,8 +78,6 @@ NixRepl::NixRepl(const Strings & searchPath)
     , staticEnv(false, &state.staticBaseEnv)
 {
     curDir = absPath(".");
-
-    store = openStore();
 }
 
 
@@ -638,6 +636,7 @@ int main(int argc, char * * argv)
             return true;
         });
 
+        store = openStore();
         NixRepl repl(searchPath);
         repl.mainLoop(files);
     });