James Moger
2012-03-28 1aa6e081ffe319ff3ddfa246783cb65dc1c71b3b
src/com/gitblit/utils/JGitUtils.java
@@ -301,6 +301,7 @@
    */
   private static List<String> getRepositoryList(String basePath, File searchFolder,
         boolean onlyBare, boolean searchSubfolders) {
      File baseFile = new File(basePath);
      List<String> list = new ArrayList<String>();
      for (File file : searchFolder.listFiles()) {
         if (file.isDirectory()) {
@@ -310,8 +311,7 @@
                  continue;
               }
               // determine repository name relative to base path
               String repository = StringUtils.getRelativePath(basePath,
                     file.getAbsolutePath());
               String repository = FileUtils.getRelativePath(baseFile, file);
               list.add(repository);
            } else if (searchSubfolders && file.canRead()) {
               // look for repositories in subfolders