submodule--helper, module_clone: catch fprintf failure
commit1f15ba1f3c370acbe85d451fe1520bffe0b2cb6f
authorStefan Beller <sbeller@google.com>
Fri, 1 Apr 2016 00:17:29 +0000 (31 17:17 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Apr 2016 21:04:33 +0000 (1 14:04 -0700)
treef1b85738a74da052ba643b4e6591ca41d4c3b217
parent1ea4d9b7c8008f5172e9995d87e2cf2d594a7ac7
submodule--helper, module_clone: catch fprintf failure

The return value of fprintf is unchecked, which may lead to
unreported errors. Use fprintf_or_die to report the error to the user.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c