summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/futils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/futils.c b/src/futils.c
index e15c8017f..7454844e7 100644
--- a/src/futils.c
+++ b/src/futils.c
@@ -476,6 +476,7 @@ int git_futils_mkdir(
break;
} else if (errno != ENOENT) {
git_error_set(GIT_ERROR_OS, "failed to stat '%s'", parent_path.ptr);
+ error = -1;
goto done;
}