http-push: add back underscore separator before lock token
authorTay Ray Chuan <rctay89@gmail.com>
Tue, 3 Feb 2009 13:07:26 +0000 (21:07 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Feb 2009 06:16:24 +0000 (22:16 -0800)
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>
http-push.c

index 203c0750fe2f26da35782455c82dda7498a72666..4b941f4d3e37e191688de64a99809909cbbed8ef 100644 (file)
@@ -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);