Made gitfo_mkdir_recurs() more tolerant. Doesn't err any more when the directory already exists.
diff --git a/src/fileops.c b/src/fileops.c
index 9fe017c..8cdfb03 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -313,5 +313,12 @@ int gitfo_dirent(
int gitfo_mkdir_recurs(const char *path, int mode)
{
- return gitfo_mkdir(path, mode);
+ int error;
+
+ error = gitfo_mkdir(path, mode);
+
+ if (errno == EEXIST)
+ return GIT_SUCCESS;
+
+ return error;
}
\ No newline at end of file