A small command line tool to simplify releasing software by updating all version strings in your source code by the correct increment and optionally commit and tag the changes.
I have my configuration stored in an external bumpversion.toml file, so that I can use it across multiple repositories.
In these repositories, I run bump-my-version with --config-file=/path_to_external/bumpversion.toml.
What I Did
When I set the commit flag, bump-my-version tries to stage the external config file resulting in a git error.
Description
I have my configuration stored in an external
bumpversion.toml
file, so that I can use it across multiple repositories. In these repositories, I runbump-my-version
with--config-file=/path_to_external/bumpversion.toml
.What I Did
When I set the commit flag, bump-my-version tries to stage the external config file resulting in a git error.
For example:
returns the following logs:
Proposal
First check if a config file is outside the git repo before trying to stage it.