From 18eaf09bb327dac17fd636d5147395d8e0da57ec Mon Sep 17 00:00:00 2001 From: George Vauter Date: Tue, 17 Dec 2024 12:49:13 -0500 Subject: [PATCH] fix: do not overwrite config path if set Signed-off-by: George Vauter --- trestlebot/cli/commands/init.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/trestlebot/cli/commands/init.py b/trestlebot/cli/commands/init.py index 4189f60a..28cb4336 100644 --- a/trestlebot/cli/commands/init.py +++ b/trestlebot/cli/commands/init.py @@ -176,8 +176,6 @@ def init_cmd( config_values.update(branch=default_branch) config = make_config(config_values) - if not config_path: - config_path = trestlebot_dir.joinpath("config.yml") - write_to_file(config, config_path) + write_to_file(config, trestlebot_dir.joinpath("config.yml")) logger.debug(f"trestle-bot config file created at {str(config_path)}") logger.info(f"Successfully initialized trestlebot project in {repo_path}")