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 59fd3f5 commit b7b9066Copy full SHA for b7b9066
commitizen/commands/bump.py
@@ -382,16 +382,9 @@ def __call__(self) -> None: # noqa: C901
382
err = c.err.strip() or c.out
383
raise BumpCommitFailedError(f'2nd git.commit error: "{err}"')
384
385
- if c.out:
386
- if self.git_output_to_stderr:
387
- out.diagnostic(c.out)
388
- else:
389
- out.write(c.out)
390
- if c.err:
391
392
- out.diagnostic(c.err)
393
394
- out.write(c.err)
+ for msg in (c.out, c.err):
+ if msg:
+ (out.diagnostic if self.git_output_to_stderr else out.write)(msg)
395
396
c = git.tag(
397
new_tag_version,
0 commit comments