cz bump
generates broken commit when run from a subfolder.
#1371
Labels
cz bump
generates broken commit when run from a subfolder.
#1371
Description
When running
cz bump --changelog
from a folder other than git’s base thenThere’s no warning or error that the additional version files weren’t found either.
If
cz
runs under the assumption thatcwd
should be the git base folder then that should be handled more gracefully, either using a warning or by finding the files correctly. As it is, runningcz
from some folder deeper inside of the git repo yields an unexpected and incorrect bump commit.Steps to reproduce
Change into any subfolder in a git repo, then run
cz bump --changelog
.Current behavior
Desired behavior
Update the actual CHANGELOG and bump files listed in version_files.
Screenshots
No response
Environment
The text was updated successfully, but these errors were encountered: