]> git.e2factory.org Git - e2factory.git/commitdiff
e2-new-source: load project after option handling
authorTobias Ulmer <tu@emlix.com>
Fri, 7 Sep 2018 15:20:22 +0000 (17:20 +0200)
committerTobias Ulmer <tu@emlix.com>
Mon, 10 Dec 2018 17:00:11 +0000 (18:00 +0100)
local/e2-new-source.lua

index 70db61505cd1b6a029e6ec737f56cdff4c218d7a..ac9eab4ed95c30c42c9c85f8ac4c6f153018e569 100644 (file)
@@ -228,9 +228,6 @@ local function e2_new_source(arg)
         error(re)
     end
 
-    e2project = e2tool.e2project()
-    e2project:init_project("new-source")
-
     e2option.flag("git", "create a git repository")
     e2option.flag("files", "create a new file on a files server")
     e2option.option("server", "specify server")
@@ -240,6 +237,9 @@ local function e2_new_source(arg)
         error(arguments)
     end
 
+    e2project = e2tool.e2project()
+    e2project:init_project("new-source")
+
     rc, re = e2project:load_project()
     if not rc then
         error(re)