t0027: make commit_chk_wrnNNO() reliable
authorTorsten Bögershausen <tboegi@web.de>
Mon, 25 Apr 2016 16:56:27 +0000 (18:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Apr 2016 19:10:48 +0000 (12:10 -0700)
When the content of a commited file is unchanged and the attributes
are changed, Git may not detect that the next commit must treat the
file as changed. This happens when lstat() doesn't detect a change,
since neither inode, mtime nor size are changed.

Add a single "Z" character to change the file size and content.
When the files are compared later in checkout_files(), the "Z" is
removed before the comparison.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found