http-push: add back underscore separator before lock token
PATCH 1/1 http-push: add back underscore separator before lock token
The patch dated Sat, 31 Jan, "[PATCH] http-push: refactor request url creation" inadvertently 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 <[email protected]>
---
http-push.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
http-push.c +1 -0
@@ -557,6 +557,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 );
Signature · 1 line
1.6.1.2.278.g9a9e.dirty
Thanks; I should have caught it while reviewing.