Hi,

the CRLF vs. LF issue with patch.exe is a rather annoying one indeed. We use 
git with core.autocrlf = true, so "all" of our files have LF line endings in 
the repository, but CRLF when checking out on Windows. When creating tarballs 
you have to take special care. In fact we provide different tarballs for 
Windows and Linux for our releases because of this issue.


Best,

Stefan

________________________________
Von: Nathan Lay <ens...@gmail.com>
Gesendet: Dienstag, 18. April 2017 18:03
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] Using shared MITK git repo between Linux and Windows

Hello again,
I made all my modifications of MITK on Linux and committed them into my local 
git repository (cloned from your repository). Then I cloned my repository onto 
Windows where I found that patch.exe crashes during the build phase. Apparently 
this is due to CRLF issues. So, how do you work around that without having to 
start over on a special non-versioned tarball of the source code just for 
Windows? I would think that your .gitattributes would have done the trick here. 
It looks pretty extensive.

Can I just do a find and run unix2dos on certain files? Which exactly? Just the 
.cmake files or does patch run on anything else?

References:
https://www.mail-archive.com/mitk-users@lists.sourceforge.net/msg06562.html
https://www.mail-archive.com/mitk-users@lists.sourceforge.net/msg06427.html

Best regards,
Nathan Lay

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to