File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,11 @@ def __call__(self) -> None:
125
125
write_message_to_file = self .arguments .get ("write_message_to_file" )
126
126
signoff = bool (self .arguments .get ("signoff" ))
127
127
128
+ if signoff :
129
+ out .warn (
130
+ "Deprecated warning: `cz commit -s` is deprecated and will be removed in v5, please use `cz commit -- -s` instead."
131
+ )
132
+
128
133
if self .arguments .get ("all" ):
129
134
git .add ("-u" )
130
135
@@ -147,11 +152,6 @@ def __call__(self) -> None:
147
152
if dry_run :
148
153
raise DryRunExit ()
149
154
150
- if signoff :
151
- out .warn (
152
- "signoff mechanic is deprecated, please use `cz commit -- -s` instead."
153
- )
154
-
155
155
if self .config .settings ["always_signoff" ] or signoff :
156
156
extra_args = f"{ extra_args } -s" .strip ()
157
157
You can’t perform that action at this time.
0 commit comments