Use the same move_temp_to_file in git-http-fetch.