@matheusbsbs / matheus-bagliano / commits / 59076eba6e
Fork 0

Make upload_pack void and remove conditional return.

Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

David Rientjes committed Aug 14, 2006 at 13:40 UTC 59076eba6e1a41c2e0032dbd656d8429e9655358
1 file changed +5 -6
upload-pack.c
+5 -6
@@ -459,18 +459,17 @@ static int send_ref(const char *refname, const unsigned char *sha1)
459 return 0;
460 }
461
462 -static int upload_pack(void)
462 +static void upload_pack(void)
463 {
464 reset_timeout();
465 head_ref(send_ref);
466 for_each_ref(send_ref);
467 packet_flush(1);
468 receive_needs();
469 - if (!want_obj.nr)
470 - return 0;
471 - get_common_commits();
472 - create_pack_file();
473 - return 0;
469 + if (want_obj.nr) {
470 + get_common_commits();
471 + create_pack_file();
472 + }
473 }
474
475 int main(int argc, char **argv)