8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26be522 commit 18e4928Copy full SHA for 18e4928
commitizen/commands/commit.py
@@ -1 8000 34,16 +134,17 @@ def __call__(self):
134
if dry_run:
135
raise DryRunExit()
136
137
- signoff: bool = (
138
- self.arguments.get("signoff") or self.config.settings["always_signoff"]
139
- )
+ always_signoff: bool = self.config.settings["always_signoff"]
+ signoff: bool = self.arguments.get("signoff")
140
141
extra_args = self.arguments.get("extra_cli_args", "")
142
143
if signoff:
144
out.warn(
145
"signoff mechanic is deprecated, please use `cz commit -- -s` instead."
146
)
+
147
+ if always_signoff or signoff:
148
extra_args = f"{extra_args} -s".strip()
149
150
c = git.commit(m, args=extra_args)
0 commit comments