diff --git a/commitizen/commands/commit.py b/commitizen/commands/commit.py index 1ed293cfea..a955f4fdc5 100644 --- a/commitizen/commands/commit.py +++ b/commitizen/commands/commit.py @@ -110,9 +110,8 @@ def __call__(self): if dry_run: raise DryRunExit() - signoff: bool = ( - self.arguments.get("signoff") or self.config.settings["always_signoff"] - ) + always_signoff: bool = self.config.settings["always_signoff"] + signoff: bool = self.arguments.get("signoff") extra_args = self.arguments.get("extra_cli_args", "") @@ -120,6 +119,8 @@ def __call__(self): out.warn( "signoff mechanic is deprecated, please use `cz commit -- -s` instead." ) + + if always_signoff or signoff: if extra_args: extra_args += " " extra_args += "-s"