@matheusbsbs / matheus-bagliano / commits / 1e8d304507
Fork 0

http-push: Make WebDAV work with (broken?) default apache2 WebDAV module

WebDAV on Debian unstable cannot handle renames on WebDAV from file.ext to newfile (without ext) when newfile* already exists. Normally, git creates a file like 'objects/xx/sha1.token', which is renamed to 'objects/xx/sha1' when transferred completely. Just use '_' instead of '.' so WebDAV doesn't see it as an extension change. Signed-off-by: Rutger Nijlunsing <git@tux.tmfweb.nl> Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>

Rutger Nijlunsing committed Aug 9, 2006 at 20:54 UTC 1e8d304507b2d7e3b411d9b351fd348edd253df8
1 file changed +1 -1
http-push.c
+1 -1
@@ -530,7 +530,7 @@ static void start_put(struct transfer_request *request)
530 request->dest = xmalloc(strlen(request->url) + 14);
531 sprintf(request->dest, "Destination: %s", request->url);
532 posn += 38;
533 - *(posn++) = '.';
533 + *(posn++) = '_';
534 strcpy(posn, request->lock->token);
535
536 slot = get_active_slot();