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>
Tay Ray Chuan committed
Feb 3, 2009 at 21:07 UTC
223bd9317643f8ccef3447583944e58c13c10db9
1 file changed
+1
http-push.c
+1
@@ -555,6 +555,7 @@ static void start_put(struct transfer_request *request)
555
request->dest = strbuf_detach(&buf, NULL);
556
557
append_remote_object_url(&buf, remote->url, hex, 0);
558
+ strbuf_addstr(&buf, "_");
559
strbuf_addstr(&buf, request->lock->token);
560
request->url = strbuf_detach(&buf, NULL);
561