Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

maven jgitflow release-start goal changes line endings to CRLF

I'm working on Windows machine on a project which has line endings set to LF. After the command jgitflow:release-start is run, poms are update with new versions, but also line-endings in poms are changed to CRLF. Just to mention there is a line *.xml text eol=lf in .gitattributes.

Does anyone has idea how to prevent this?

like image 351
Marko Vranjkovic Avatar asked Sep 28 '22 12:09

Marko Vranjkovic


1 Answers

There is a ticket to improve line-endings handling in jGit flow plugin here

Currently, jgit flow chooses the EOL to use based on the global GIT config for core.eol. In my case adding core.eol=lf solves the problem.

like image 72
Marko Vranjkovic Avatar answered Oct 18 '22 12:10

Marko Vranjkovic