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 <gvauter@redhat.com>
  • Loading branch information
gvauter committed Dec 17, 2024
1 parent 1f6f6c6 commit 769d0df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions trestlebot/cli/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

0 comments on commit 769d0df

Please sign in to comment.