peritus / bumpversion

Version-bump your software with a single command
https://pypi.python.org/pypi/bumpversion
MIT License
1.5k stars 148 forks source link

changing file pointed to by a simlink #180

Open leventelist opened 6 years ago

leventelist commented 6 years ago

I get this error message, when a file is changed by the

[bumpversion:file:simlink_file]

option:

fatal: pathspec 'some/file' is beyond a symbolic link Traceback (most recent call last): File "/usr/bin/bumpversion", line 9, in load_entry_point('bumpversion==0.5.3', 'console_scripts', 'bumpversion')() File "/usr/lib/python3/dist-packages/bumpversion/init.py", line 976, in main vcs.add_path(path) File "/usr/lib/python3/dist-packages/bumpversion/init.py", line 146, in add_path subprocess.check_output(["git", "add", "--update", path]) File "/usr/lib/python3.5/subprocess.py", line 316, in check_output **kwargs).stdout File "/usr/lib/python3.5/subprocess.py", line 398, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['git', 'add', '--update', 'some/file']' returned non-zero exit status 128

I have bumpversion v0.5.3 (using Python v3.5.3)

sharksforarms commented 6 years ago

See this fork https://github.com/c4urself/bump2version/