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

Re: http-push sends MKCOL command to create remote directory MKCOL http://user@server:80/url/.git/refs/ that already exists

From
Tay Ray Chuan <rctay89@gmail.com>
Date
Aug 15, 2009, 01:28 UTC
Message-ID
<be6fef0d0908141828u1e426dc5nbf94b9a5db015943@mail.gmail.com>
In-Reply-To
<1250264521299-3445796.post@n2.nabble.com>
Hi,
On Fri, Aug 14, 2009 at 11:42 PM, willievu<willievu@dev.java.net> wrote:
> Is MKCOL expected even for existing directory in the remote repository?  Is
> this a WebDAV server problem that 500 is returned?

Yes, you should expect MKCOLs to be done on directories that already exist. On my Apache server with WebDAV, when a MKCOL is done on a directory that already exists, it returns 405. Reading the WebDAV specs (http://www.webdav.org/specs/rfc4918.html#rfc.section.9.3.1):

  405 (Method Not Allowed) - MKCOL can only be executed on an unmapped URL.
So this behaviour is accounted for in the spec itself, and git handles this too.

What I think is that your server isn't implementing WebDAV right, or that you have some scripts/mods over the git repository you're serving that are failing leading to the 500 error.

-- 
Cheers,
Ray Chuan
Previous: willievu
Message 2 of 2 in “http-push sends MKCOL command to create remote directory MKCOL http://user@server:80/url/.git/refs/ that already exists”
  1. willievuAug 14, 2009
  2. Tay Ray ChuanAug 15, 2009

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.