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