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 de44a0a commit df3a87dCopy full SHA for df3a87d
commitizen/commands/bump.py
@@ -148,8 +148,6 @@ def __call__(self): # noqa: C901
148
version_files,
149
check_consistency=self.check_consistency,
150
)
151
- if is_files_only:
152
- raise ExpectedExit()
153
154
if self.changelog:
155
changelog_cmd = Changelog(
@@ -164,6 +162,10 @@ def __call__(self): # noqa: C901
164
162
c = cmd.run(f"git add {changelog_cmd.file_name}")
165
163
166
self.config.set_key("version", str(new_version))
+
+ if is_files_only:
167
+ raise ExpectedExit()
168
169
c = git.commit(message, args=self._get_commit_args())
170
if c.return_code != 0:
171
raise BumpCommitFailedError(f'git.commit error: "{c.err.strip()}"')
0 commit comments