convert.c: correct attr_action()
commit817a0c7968c1d7e0f574b6d07451445832f781aa
authorTorsten Bögershausen <tboegi@web.de>
Tue, 23 Feb 2016 17:07:19 +0000 (23 18:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Feb 2016 20:53:15 +0000 (23 12:53 -0800)
treea550bc41523ad300752b161eaad2c0b2d8508adb
parent6e336a530b0dd98d1c751440ca5666a6999ab020
convert.c: correct attr_action()

df747b81 (convert.c: refactor crlf_action, 2016-02-10) introduced a
bug to "git ls-files --eol".

The "text" attribute was shown as "text eol=lf" or "text eol=crlf",
depending on core.autocrlf or core.eol.

Correct this and add test cases in t0027.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c
t/t0027-auto-crlf.sh