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>
This commit is contained in:
parent
74b504f671
commit
59076eba6e
@ -459,18 +459,17 @@ static int send_ref(const char *refname, const unsigned char *sha1)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int upload_pack(void)
|
static void upload_pack(void)
|
||||||
{
|
{
|
||||||
reset_timeout();
|
reset_timeout();
|
||||||
head_ref(send_ref);
|
head_ref(send_ref);
|
||||||
for_each_ref(send_ref);
|
for_each_ref(send_ref);
|
||||||
packet_flush(1);
|
packet_flush(1);
|
||||||
receive_needs();
|
receive_needs();
|
||||||
if (!want_obj.nr)
|
if (want_obj.nr) {
|
||||||
return 0;
|
|
||||||
get_common_commits();
|
get_common_commits();
|
||||||
create_pack_file();
|
create_pack_file();
|
||||||
return 0;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
Loading…
Reference in New Issue
Block a user