From: lemval Date: Tue, 31 Jan 2012 14:25:02 +0000 (+0100) Subject: Do not traverse unaccessible subdirectories (issue 51) X-Git-Tag: v0.9.0~123^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1c30dad2115fc513791d8a5b292ad0f7d7b85749;p=gitblit.git Do not traverse unaccessible subdirectories (issue 51) --- diff --git a/src/com/gitblit/utils/JGitUtils.java b/src/com/gitblit/utils/JGitUtils.java index 6470634c..319aca5a 100644 --- a/src/com/gitblit/utils/JGitUtils.java +++ b/src/com/gitblit/utils/JGitUtils.java @@ -340,7 +340,7 @@ public class JGitUtils { String repository = StringUtils.getRelativePath(basePath, file.getAbsolutePath()); list.add(repository); - } else if (searchSubfolders) { + } else if (searchSubfolders && file.canRead()) { // look for repositories in subfolders list.addAll(getRepositoryList(basePath, file, exportAll, searchSubfolders)); }