Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bumpversion replaces LF with CRLF on Windows #44

Closed
jaraco opened this issue Apr 20, 2014 · 2 comments
Closed

bumpversion replaces LF with CRLF on Windows #44

jaraco opened this issue Apr 20, 2014 · 2 comments

Comments

@jaraco
Copy link
Contributor

jaraco commented Apr 20, 2014

In trying to employ bumpversion for the comtypes project, I found that on a Windows host, running bumpversion will create a large diff, replacing Unix newlines with Windows newlines.

Bumpversion should retain the newlines of the original file.

@jaraco
Copy link
Contributor Author

jaraco commented Apr 20, 2014

I fixed this issue for the CPython reindent script at one point. I'll see if the fix there is applicable here.

peritus added a commit that referenced this issue Apr 21, 2014
Save the files in binary mode to avoid mutating newlines. Fixes #44
@peritus peritus added the v0.5 label Jun 13, 2014
@peritus
Copy link
Owner

peritus commented Jun 15, 2014

This will be part of the upcoming version 0.5 — which you can install by running

sudo pip install https://github.com/peritus/bumpversion/archive/master.zip#egg=bumpversion-dev

I'd appreciate any testing before the release. Please note the new configuration format (documented in the README)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants