From dc4906f12aedd608b01d04415fdca838eba045f6 Mon Sep 17 00:00:00 2001 From: Alan Rogers Date: Thu, 15 May 2014 17:40:28 +1000 Subject: Skip unreadable files for now. --- src/path.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/path.c') 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; } -- cgit v1.2.1