From: Tay Ray Chuan Date: Fri, 30 Jan 2009 23:51:55 +0000 (+0800) Subject: http-push: refactor request url creation X-Git-Tag: v1.6.2-rc0~15^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/817d14a87a90481b60a1c28f79f7d838d985a45c?ds=inline;hp=817d14a87a90481b60a1c28f79f7d838d985a45c 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 Signed-off-by: Junio C Hamano ---