libgit2/libgit2 — pull request #720 by nulltoken (2012-05-23 10:56:55+00:00)
Title: Make git_futils_mkdir_r() able to cope with Windows network paths

This partially fixes libgit2/libgit2sharp#153.

This PR contains no test. Indeed, I haven't been able to come up with an easy way to unit test the recursive creation of folders on a Windows network path.

However the following steps should allow one adventurous reviewer to check the correctness of this fix:

1. Within an existing `C:\Temp` folder, create a new `shared` folder.
1. Share the `shared` folder and make it read-write accessible to the identity under which the clar tests are being run.
1. Add the following test to `tests-clar/repo/init.c`
1. Replace `COMPUTER_NAME` with... well... the name of the computer

```c
void test_repo_init__standard_repo_on_a_network_path(void)
{
if (git_path_isdir("C:/temp/shared/boom"));
git_futils_rmdir_r("C:/temp/shared/boom", GIT_DIRREMOVAL_FILES_AND_DIRS);

cl_git_pass(git_repository_init(&_repo, "//COMPUTER_NAME/shared/boom", false));
git_repository_free(_repo);

cl_git_pass(git_repository_open(&_repo, "//COMPUTER_NAME/shared/boom"));
}
```