Make object creation in http fetch a bit safer.
authorJunio C Hamano <junkio@cox.net>
Wed, 21 Sep 2005 09:46:32 +0000 (02:46 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 21 Sep 2005 09:47:16 +0000 (02:47 -0700)
commit09d920831edba17fe983269a9d0d85e592dd4bb3
treeef43e13997b426d0591be9c1ff0236b2453dae8f
parentaf61c6e008c39ee9f61af33bb48850230f503443
Make object creation in http fetch a bit safer.

Unlike write_sha1_file() that tries to create the object file in a
temporary location and then move it to the final location, fetch_object
could have been interrupted in the middle, leaving a corrupt file.

Signed-off-by: Junio C Hamano <junkio@cox.net>
http-fetch.c