bundle, fast-import: detect write failure
commit95693d45ee1c1d4b76cac672636cf31229186a18
authorJim Meyering <jim@meyering.net>
Thu, 10 Jan 2008 08:54:25 +0000 (10 09:54 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Jan 2008 09:08:11 +0000 (10 01:08 -0800)
tree84b1bec8ad8a2ab4c24cc6552b918d295c7de9f5
parent35cda061640c26371d5841099ad30c6968d510b2
bundle, fast-import: detect write failure

I noticed some unchecked writes.  This fixes them.

* bundle.c (create_bundle): Die upon write failure.
* fast-import.c (keep_pack): Die upon write or close failure.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bundle.c
fast-import.c