From fbf1f5735285fa33ec00342f550f92e064f791da Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 26 Feb 2016 18:35:39 -0500 Subject: [PATCH] Fix enforcing of Unix newlines for SQL files Follow-up from f6fc14f7 Newline handling in Git 2.7.2 on Windows seems totally broken to me -- if I have core.autocrlf set to true but .gitattributes has "* text=auto", text files with Unix newlines get converted to CRLF, which seems contrary to all documentation I can find. In any case, this is probably only an issue for SQL files (and only because of one regexp that I'm too stubborn to change), and we don't generally have Windows users committing new files, so can limit this to SQL for now. --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index d01653a888..cc2d335b83 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -text eol=lf +*.sql text eol=lf