http-push: refactor request url creation
authorTay Ray Chuan <rctay89@gmail.com>
Fri, 30 Jan 2009 23:51:55 +0000 (07:51 +0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 1 Feb 2009 01:10:07 +0000 (17:10 -0800)
commit817d14a87a90481b60a1c28f79f7d838d985a45c
tree2d883ce35d5e7f8ae6247e30a7f44a85268ce0de
parenta34a9dbbced36999496c52b43460825732d487ba
http-push: refactor request url creation

Introduce two helper functions append_remote_object_url() and
get_remote_object_url() and use them to remove various places
that allocate and format the URL by hand.  These functions generate
a URL that point at the fan-out directory inside the remote object
store (e.g. http://host/path/to/repo/objects/a1/) or at an individual
loose object file.

Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c