Skip to content

Commit 95f31e9

Browse files
jrngitster
authored andcommitted
convert: The native line-ending is \r\n on MinGW
If you try this: 1. Install Git for Windows (from the msysgit project) 2. Put [core] autocrlf = false eol = native in your .gitconfig. 3. Clone a project with *.txt text in its .gitattributes. Then with current git, any text files checked out have LF line endings, instead of the expected CRLF. Cc: Johannes Schindelin <[email protected]> Cc: Johannes Sixt <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent afad200 commit 95f31e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config.mak.uname

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ ifneq (,$(findstring MINGW,$(uname_S)))
507507
compat/win32/dirent.o
508508
EXTLIBS += -lws2_32
509509
PTHREAD_LIBS =
510+
NATIVE_CRLF = YesPlease
510511
X = .exe
511512
SPARSE_FLAGS = -Wno-one-bit-signed-bitfield
512513
ifneq (,$(wildcard ../THIS_IS_MSYSGIT))

0 commit comments

Comments
 (0)