summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorlemval <mvanleeuwen@xebia.com>2012-01-31 15:25:02 +0100
committerlemval <mvanleeuwen@xebia.com>2012-01-31 15:25:02 +0100
commit1c30dad2115fc513791d8a5b292ad0f7d7b85749 (patch)
tree3e1394db5b6d08de9467d5ab7a335277a22042ac /src/com
parent2dfa21c4e10e33ef2b736353ae6c2b31fc0a4fd7 (diff)
downloadgitblit-1c30dad2115fc513791d8a5b292ad0f7d7b85749.tar.gz
gitblit-1c30dad2115fc513791d8a5b292ad0f7d7b85749.zip
Do not traverse unaccessible subdirectories (issue 51)
Diffstat (limited to 'src/com')
-rw-r--r--src/com/gitblit/utils/JGitUtils.java2
1 files changed, 1 insertions, 1 deletions
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));
}