clone: use xfopen() instead of fopen()
commit02912f477586befaf46e0db4f7c47b52081d5b6d
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 3 May 2017 10:16:47 +0000 (3 17:16 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 May 2017 03:33:55 +0000 (26 12:33 +0900)
treef23ead5b61fa0df9ea0354239152fa14a3875887
parent23a9e0712d76a63c5af1caeb816943f466f0300e
clone: use xfopen() instead of fopen()

copy_alternates() called fopen() without handling errors. By switching
to xfopen(), this bug is fixed.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c