summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorSun He <sunheehnus@gmail.com>2014-03-06 11:16:36 +0800
committerSun He <sunheehnus@gmail.com>2014-03-06 11:16:36 +0800
commit6246de93b65fc74cba2e17ab031402adff84433f (patch)
tree676fbb35641726736b0cc8053f73ec9f1ed03d0e /src/path.c
parent8384a50a2171f57cc1b8158777b124d2022db94e (diff)
parenta064dc2d0b6206116a35be4b62c58c3c1170d5de (diff)
downloadlibgit2-6246de93b65fc74cba2e17ab031402adff84433f.tar.gz
Merge completed: resolve the conflict with the upstream
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/path.c b/src/path.c
index 89409eae4..fa800b74c 100644
--- a/src/path.c
+++ b/src/path.c
@@ -853,6 +853,9 @@ int git_path_direach(
if ((dir = opendir(path->ptr)) == NULL) {
giterr_set(GITERR_OS, "Failed to open directory '%s'", path->ptr);
+ if (errno == ENOENT)
+ return GIT_ENOTFOUND;
+
return -1;
}