author | Junio C Hamano <junkio@cox.net> | |
Wed, 21 Sep 2005 09:46:32 +0000 (02:46 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 21 Sep 2005 09:47:16 +0000 (02:47 -0700) | ||
commit | 09d920831edba17fe983269a9d0d85e592dd4bb3 | |
tree | ef43e13997b426d0591be9c1ff0236b2453dae8f | tree | snapshot |
parent | af61c6e008c39ee9f61af33bb48850230f503443 | commit | diff |
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>
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 | diff | blob | history |