git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] http-push: Make WebDAV work with (broken?) default apache2 WebDAV module

From
Junio C Hamano <junkio@cox.net>
Date
Aug 9, 2006, 19:33 UTC
Message-ID
<7vk65h3drd.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060809185423.GB7841@nospam.com>
Rutger Nijlunsing <rutger@nospam.com> writes:
Show 10 quoted lines
> 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>

Good problem and workaround description. Nick, does this look sane to you, or is there a more kosher way to handle this?

Show 25 quoted lines
> ---
>  http-push.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/http-push.c b/http-push.c
> index 4021e7d..d45733e 100644
> --- a/http-push.c
> +++ b/http-push.c
> @@ -530,7 +530,7 @@ static void start_put(struct transfer_re
>  	request->dest = xmalloc(strlen(request->url) + 14);
>  	sprintf(request->dest, "Destination: %s", request->url);
>  	posn += 38;
> -	*(posn++) = '.';
> +	*(posn++) = '_';
>  	strcpy(posn, request->lock->token);
>  
>  	slot = get_active_slot();
> -- 
> 1.4.2.rc2.g7cb1
>
>
> -- 
> Rutger Nijlunsing ---------------------------------- eludias ed dse.nl
> never attribute to a conspiracy which can be explained by incompetence
> ----------------------------------------------------------------------
Previous: Rutger NijlunsingNext: Nick Hengeveld
Message 2 of 3 in “http-push: Make WebDAV work with (broken?) default apache2 WebDAV module”
  1. http-push: Make WebDAV work with (broken?) default apache2 WebDAV moduleRutger Nijlunsing, Aug 9, 2006
  2. Junio C HamanoAug 9, 2006
  3. Nick HengeveldAug 11, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.