summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Tay Ray Chuan <rctay89@gmail.com>2009-02-03 21:07:26 +0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-02-03 22:16:24 -0800
commit223bd9317643f8ccef3447583944e58c13c10db9 (patch)
tree1577f0f1a1862795b30885401dc62cf329231a4a
parenthttp-push.c: get_remote_object_url() is only used under USE_CURL_MULTI (diff)
downloadtgif-223bd9317643f8ccef3447583944e58c13c10db9.tar.xz
http-push: add back underscore separator before lock token
817d14a (http-push: refactor request url creation, 2009-01-31) removed the underscore separator between the object path and the appended lock token. This patch adds it back. This would be keeping in line with the aforementioned patch's objective of refactoring, without changing the behaviour and effect, of the code. This would also be useful for testing if the lock token has been indeed appended to the object url. Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--http-push.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/http-push.c b/http-push.c
index 203c0750fe..4b941f4d3e 100644
--- a/http-push.c
+++ b/http-push.c
@@ -555,6 +555,7 @@ static void start_put(struct transfer_request *request)
request->dest = strbuf_detach(&buf, NULL);
append_remote_object_url(&buf, remote->url, hex, 0);
+ strbuf_addstr(&buf, "_");
strbuf_addstr(&buf, request->lock->token);
request->url = strbuf_detach(&buf, NULL);