author | Tay Ray Chuan <rctay89@gmail.com> | |
Fri, 30 Jan 2009 23:51:55 +0000 (07:51 +0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 1 Feb 2009 01:10:07 +0000 (17:10 -0800) | ||
commit | 817d14a87a90481b60a1c28f79f7d838d985a45c | |
tree | 2d883ce35d5e7f8ae6247e30a7f44a85268ce0de | tree | snapshot |
parent | a34a9dbbced36999496c52b43460825732d487ba | commit | diff |
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>
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 | diff | blob | history |