]> source.dussan.org Git - gitblit.git/commitdiff
Do not traverse unaccessible subdirectories (issue 51) 6/head
authorlemval <mvanleeuwen@xebia.com>
Tue, 31 Jan 2012 14:25:02 +0000 (15:25 +0100)
committerlemval <mvanleeuwen@xebia.com>
Tue, 31 Jan 2012 14:25:02 +0000 (15:25 +0100)
src/com/gitblit/utils/JGitUtils.java

index 6470634c1cac6ab6766d76aefacef6c2f4dfaeaa..319aca5a254a9c37f785f764f7e0500ad93452b2 100644 (file)
@@ -340,7 +340,7 @@ public class JGitUtils {
                                        String repository = StringUtils.getRelativePath(basePath,\r
                                                        file.getAbsolutePath());\r
                                        list.add(repository);\r
-                               } else if (searchSubfolders) {\r
+                               } else if (searchSubfolders && file.canRead()) {\r
                                        // look for repositories in subfolders\r
                                        list.addAll(getRepositoryList(basePath, file, exportAll, searchSubfolders));\r
                                }\r