diff --git a/src/git_flow/command/init.py b/src/git_flow/command/init.py index 24db201..43f9c71 100644 --- a/src/git_flow/command/init.py +++ b/src/git_flow/command/init.py @@ -27,9 +27,7 @@ def init(): flowconfig["flow.remote"] = remote flowconfig["flow.remote-type"] = remote_type - Git.set_config(flowconfig, FLOWCONFIG_FILENAME) - Git("add", FLOWCONFIG_FILENAME).exec() - Git("commit", message="feature: initialize git-flow").exec() + Git.set_config(flowconfig) _ensure_all_flow_branches_exist(branches, remote) diff --git a/src/git_flow/git.py b/src/git_flow/git.py index 2912ac9..d882973 100644 --- a/src/git_flow/git.py +++ b/src/git_flow/git.py @@ -33,7 +33,7 @@ class Git: @staticmethod def set_config(config: dict[str, str], file: str | None = None): for key, value in config.items(): - Git("config", key, value, file=file).exec() + Git("config", key, value, file=file).exec(print="Updating config") @staticmethod def flow_config(*args, **kwargs):