summaryrefslogtreecommitdiff
path: root/upload-pack.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2006-08-14 20:40:51 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-08-15 01:59:03 (GMT)
commit59076eba6e1a41c2e0032dbd656d8429e9655358 (patch)
treed0f145d1c0d0d3dc166fc226fa18e9b8b94dc9bb /upload-pack.c
parent74b504f67173a9f4dd06f01d109c58ea13f279b4 (diff)
downloadgit-59076eba6e1a41c2e0032dbd656d8429e9655358.zip
git-59076eba6e1a41c2e0032dbd656d8429e9655358.tar.gz
git-59076eba6e1a41c2e0032dbd656d8429e9655358.tar.bz2
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>
Diffstat (limited to 'upload-pack.c')
-rw-r--r--upload-pack.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/upload-pack.c b/upload-pack.c
index bbd6bd6..27e2abe 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -459,18 +459,17 @@ static int send_ref(const char *refname, const unsigned char *sha1)
return 0;
}
-static int upload_pack(void)
+static void upload_pack(void)
{
reset_timeout();
head_ref(send_ref);
for_each_ref(send_ref);
packet_flush(1);
receive_needs();
- if (!want_obj.nr)
- return 0;
- get_common_commits();
- create_pack_file();
- return 0;
+ if (want_obj.nr) {
+ get_common_commits();
+ create_pack_file();
+ }
}
int main(int argc, char **argv)