Skip to content

Commit

Permalink
fix: do not overwrite config path if set
Browse files Browse the repository at this point in the history
Signed-off-by: George Vauter <[email protected]>
  • Loading branch information
gvauter committed Dec 17, 2024
1 parent 586bfca commit ceb084c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trestlebot/cli/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

0 comments on commit ceb084c

Please sign in to comment.