I successfully compiled and tested GitCandy from Visual Studio and IIS Express. However when I deploy it to a non Express IIS, the repository creation fails. I added some extra error logging to the file operations on the GitCandy source level.
What I see is this:
>> 04/11/2015 13:46:37.964 -07:00 Error, LibGit2Sharp.NameConflictException:
Failed to make directory 'c:/Users/Csaba/Documents': Cannot create a file when that file already exists.
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
at LibGit2Sharp.Core.Proxy.git_repository_init_ext(FilePath workdirPath, FilePath gitdirPath, Boolean isBare)
at LibGit2Sharp.Repository.Init(String path, Boolean isBare)
GitCandy
calls LibGit2Sharp
with the correct repository full path (in my case c:\Users\Csaba\Documents\GCD\Repositories\GCT1
) and isBare
is set to true
.
So it's doesn't make sense why libgit2 would try to create a parent folder. It's absolutely true though that the Document folder already exists. Before I start to dig into the guts of LibGit2Sharp and then libgit2, I wonder if anyone else seen this.