From: Tobias Ulmer Date: Fri, 7 Sep 2018 15:20:22 +0000 (+0200) Subject: e2-new-source: load project after option handling X-Git-Tag: e2factory-2.3.18rc1~76 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=c38c371f51e2b8770bb8c6bc9f65b72dd0fe740e;p=e2factory.git e2-new-source: load project after option handling --- diff --git a/local/e2-new-source.lua b/local/e2-new-source.lua index 70db615..ac9eab4 100644 --- a/local/e2-new-source.lua +++ b/local/e2-new-source.lua @@ -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)