{"action":"opened","issue":{"url":"https://api.github.com/repos/libgit2/libgit2/issues/3308","labels_url":"https://api.github.com/repos/libgit2/libgit2/issues/3308/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/libgit2/issues/3308/comments","events_url":"https://api.github.com/repos/libgit2/libgit2/issues/3308/events","html_url":"https://github.com/libgit2/libgit2/issues/3308","id":94807971,"number":3308,"title":"Can't create repository (webhotel/user rights)","user":{"login":"larshg","id":1165340,"avatar_url":"https://avatars.githubusercontent.com/u/1165340?v=3","gravatar_id":"","url":"https://api.github.com/users/larshg","html_url":"https://github.com/larshg","followers_url":"https://api.github.com/users/larshg/followers","following_url":"https://api.github.com/users/larshg/following{/other_user}","gists_url":"https://api.github.com/users/larshg/gists{/gist_id}","starred_url":"https://api.github.com/users/larshg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larshg/subscriptions","organizations_url":"https://api.github.com/users/larshg/orgs","repos_url":"https://api.github.com/users/larshg/repos","events_url":"https://api.github.com/users/larshg/events{/privacy}","received_events_url":"https://api.github.com/users/larshg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-13T20:48:01Z","updated_at":"2015-07-13T20:48:01Z","closed_at":null,"body":"Hi\r\n\r\nI once had the problem that I couldn't create repositories using Bonobo gitserver, thats using libgit2sharp wrapper for libgit2. The old issue is #2486, which was solved by @arrbee and included in libgit2sharp version 0.19\r\n\r\nAfter updating to the newest libgit2sharp I'm met with similar error \"Failed to make directory 'd:/web': Cannot create a file when that file already exists.\" - which is the root dir on Uneuro's webservers which my user don't have any rights to do anything with.\r\n\r\nAs I can track down it has something with the changes between [these two](https://github.com/libgit2/libgit2/compare/hf/libgit2sharp_020_patch...bindings/libgit2sharp/020_2).\r\n\r\nwith the changes to method ```git_futils_mkdir```.\r\n\r\nI know its some old changes, but since you made the changes @ethomson - maybe you can figure out what changes is required to make it work again?\r\n\r\nIt also seems that a unittest for this was created [here](https://github.com/libgit2/libgit2/blob/bindings/libgit2sharp/020_2/tests/core/mkdir.c#L190-L218)\r\n\r\nBut maybe this error isn't catched here? since the error message is not the same, I might be on the wrong track?\r\n\r\nMethod calls:\r\n\r\nBonobo gitserver:\r\nLibGit2Sharp.Repository.Init(path, true);\r\n\r\nLibgit2sharp:\r\nProxy.git_repository_init_ext(null, path, isBare)\r\nNativeMethods.git_repository_init_ext(out repo, gitdirPath, opts);\r\n\r\nIf any more info is need please say so.\r\n"}}