builtin/am: make sure state files are text
authorJunio C Hamano <gitster@pobox.com>
Mon, 24 Aug 2015 16:43:41 +0000 (09:43 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Aug 2015 20:01:59 +0000 (13:01 -0700)
We forgot to terminate the payload given to write_file() with LF,
resulting in files that end with an incomplete line. Teach the
wrappers builtin/am uses to make sure it adds LF at the end as
necessary.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found