git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] attribute "eol" with "crlf"
@ 2011-12-16 17:44 Ralf Thielow
  2011-12-16 18:03 ` Junio C Hamano
  2011-12-16 18:21 ` Matthieu Moy
  0 siblings, 2 replies; 15+ messages in thread
From: Ralf Thielow @ 2011-12-16 17:44 UTC (permalink / raw)
  To: git

There's a bug in git-1.7.8 if you use the attribute "eol" with "crlf".

Steps to reproduce:
- add and commit a text file which uses 0d0a for line breaks
7465 7374 0d0a 0d0a 7465 7374 0d0a       test....test..
- add ".gitattributes" with "*.txt eol=crlf"
- change a line in the file
- execute "git checkout [file]"

The result is:
7465 7374 0d0d 0a0d 0d0a 7465 7374 0d0d  test......test..

0d0a was replaced by 0d0d0a.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-12-17 19:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-16 17:44 [BUG] attribute "eol" with "crlf" Ralf Thielow
2011-12-16 18:03 ` Junio C Hamano
2011-12-16 18:49   ` Ralf Thielow
2011-12-16 18:21 ` Matthieu Moy
2011-12-16 18:28   ` Ralf Thielow
2011-12-16 20:09     ` Adam Borowski
2011-12-16 20:53       ` Ralf Thielow
2011-12-16 21:21   ` Junio C Hamano
2011-12-16 22:05     ` Ralf Thielow
2011-12-16 22:17       ` Junio C Hamano
2011-12-16 22:36         ` Ralf Thielow
2011-12-16 23:24           ` Junio C Hamano
2011-12-16 23:34     ` Junio C Hamano
2011-12-17 18:04       ` Ralf Thielow
2011-12-17 19:48         ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).