]> granicus.if.org Git - llvm/commit
[git-llvm] Make `push` work on CRLF files with svn:eol-style=native
authorReid Kleckner <rnk@google.com>
Mon, 24 Apr 2017 22:09:08 +0000 (22:09 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 24 Apr 2017 22:09:08 +0000 (22:09 +0000)
commitd403ad1ed05397955873db29b9e3fc3e4e89a2bd
tree7dfce6e59228be2dad181ff9a89cfa22530be431
parent87f63fed9365450f3e11256241a3f3538fe0d4f6
[git-llvm] Make `push` work on CRLF files with svn:eol-style=native

Summary:
`git apply` on Windows doesn't work for files that SVN checks out as
CRLF. There is no way to force SVN to check everything out with Unix
line endings on Windows. Files with svn:eol-style=native will always
come out with CRLF, breaking `git apply`, which wants Unix line endings.
My workaround is to list all files with this property set in the change,
and run `dos2unix` on them. SVN doesn't commit a massive line ending
change because the svn:eol-style property indicates that these are text
files.

Tested on r301245.

Reviewers: zturner, jlebar

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D32452

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301262 91177308-0d34-0410-b5e6-96231b3b80d8
utils/git-svn/git-llvm