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 a9cd957 commit 52be917Copy full SHA for 52be917
commitizen/commands/bump.py
@@ -397,16 +397,10 @@ def __call__(self) -> None:
397
err = c.err.strip() or c.out
398
raise BumpCommitFailedError(f'2nd git.commit error: "{err}"')
399
400
- if c.out:
401
- if self.git_output_to_stderr:
402
- out.diagnostic(c.out)
403
- else:
404
- out.write(c.out)
405
- if c.err:
406
407
- out.diagnostic(c.err)
408
409
- out.write(c.err)
+ for msg in (c.out, c.err):
+ if msg:
+ out_func = out.diagnostic if self.git_output_to_stderr else out.write
+ out_func(msg)
410
411
c = git.tag(
412
new_tag_version,
0 commit comments