Skip to content

Commit

Permalink
http-push: add back underscore separator before lock token
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tay Ray Chuan authored and Junio C Hamano committed Feb 4, 2009
1 parent dcdb333 commit 223bd93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http-push.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 223bd93

Please sign in to comment.