Description
Description
Hello,
I am using commitizen with my sphinx documentation to include CHANGELOG to my sphinx docs.
After update to 4.6.3 and newer versions the following code breaks:
subprocess.run("cz -n cz_customize changelog --file-name=" + os.path.join("changelog", file), shell=True)
but rather following works:
subprocess.run("cz -n cz_customize changelog --file-name=" + os.path.join("docs", "source", "changelog", file), shell=True)
It seems that there are the changes related to relative path detection or so.
Is this a bug or expected behavior?
Can someone help to understand how code should be changed in order to support both cz versions?
Steps to reproduce
- create git repo
- create a subfolder
- change directory to subfolder
- run cz changelog generation and it will grab git root directory instead
Current behavior
Fails to generate changelog in intended path
Desired behavior
Generate documents as in previous versions or at least make it compatible
Screenshots
No response
Environment
Commitizen Version: 4.6.3
Python Version: 3.12.8 (main, Dec 4 2024, 08:54:12) [GCC 11.4.0]
Operating System: Linux