Skip to content

Commit

Permalink
initialization is requested only when config is passed
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
  • Loading branch information
Denis Zalevskiy committed Aug 7, 2014
1 parent 3308be0 commit 2c59b02
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/vault.cpp
Expand Up @@ -301,10 +301,8 @@ void Vault::setup(const QVariantMap *config)
setupGitConfig();

syncConfigGlobal();
} else {
} else if (config) {
debug::info("Repository initialization is requested");
if (!config)
error::raise({{"msg", "Config should be passed"}});

if (os::path::exists(m_path))
error::raise({{"msg", "Vault dir already exists, can't create"}, {"path", m_path}});
Expand Down

0 comments on commit 2c59b02

Please sign in to comment.