diff --git a/trestlebot/cli/commands/init.py b/trestlebot/cli/commands/init.py index 972b4b0c..4189f60a 100644 --- a/trestlebot/cli/commands/init.py +++ b/trestlebot/cli/commands/init.py @@ -176,7 +176,8 @@ def init_cmd( config_values.update(branch=default_branch) config = make_config(config_values) - config_path = trestlebot_dir.joinpath("config.yml") + if not config_path: + config_path = trestlebot_dir.joinpath("config.yml") write_to_file(config, config_path) logger.debug(f"trestle-bot config file created at {str(config_path)}") logger.info(f"Successfully initialized trestlebot project in {repo_path}")