From 1c30dad2115fc513791d8a5b292ad0f7d7b85749 Mon Sep 17 00:00:00 2001 From: lemval Date: Tue, 31 Jan 2012 15:25:02 +0100 Subject: [PATCH] Do not traverse unaccessible subdirectories (issue 51) --- src/com/gitblit/utils/JGitUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.39.5