summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Rogers <alan@github.com>2014-05-15 17:40:28 +1000
committerAlan Rogers <alan@github.com>2014-05-15 17:40:28 +1000
commitdc4906f12aedd608b01d04415fdca838eba045f6 (patch)
tree91955bbcc57c70827ff4237bdfa125bde07eaa27 /src
parent158c8ba1ee81fe20d3beb16650f30f3be02054f7 (diff)
downloadlibgit2-dc4906f12aedd608b01d04415fdca838eba045f6.tar.gz
Skip unreadable files for now.
Diffstat (limited to 'src')
-rw-r--r--src/path.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c
index 55790ff7c..a056f6983 100644
--- a/src/path.c
+++ b/src/path.c
@@ -1108,13 +1108,12 @@ int git_path_dirload_with_stat(
if ((error = git_buf_joinpath(&full, full.ptr, ps->path)) < 0 ||
(error = git_path_lstat(full.ptr, &ps->st)) < 0) {
- if (error == GIT_ENOTFOUND) {
+ if (error == GIT_ENOTFOUND || error == GIT_ENOACCESS) {
giterr_clear();
error = 0;
git_vector_remove(contents, i--);
continue;
}
-
break;
}