\r
#### fixes\r
\r
+- Adjust repository search to handle foo.git and foo/bar.git (issue 104)\r
- Fixed bug where a repository set as authenticated push did not have anonymous clone access (issue 96)\r
- Fixed bug in Basic authentication if passwords had a colon (Github/peterloron)\r
- Fixed bug where the Gitblit Manager could not update a setting that was not referenced in reference.properties (issue 85)\r
if (onlyBare && gitDir.getName().equals(".git")) {\r
continue;\r
}\r
- // determine repository name relative to base path\r
- String repository = FileUtils.getRelativePath(baseFile, file);\r
- list.add(repository);\r
+ if (gitDir.equals(file) || gitDir.getParentFile().equals(file)) {\r
+ // determine repository name relative to base path\r
+ String repository = FileUtils.getRelativePath(baseFile, file);\r
+ list.add(repository);\r
+ } else if (searchSubfolders && file.canRead()) {\r
+ // look for repositories in subfolders\r
+ list.addAll(getRepositoryList(basePath, file, onlyBare, searchSubfolders));\r
+ }\r
} else if (searchSubfolders && file.canRead()) {\r
// look for repositories in subfolders\r
list.addAll(getRepositoryList(basePath, file, onlyBare, searchSubfolders));\r
assertEquals(0, list.size());\r
list.addAll(JGitUtils.getRepositoryList(new File("DoesNotExist"), true, true));\r
assertEquals(0, list.size());\r
- list.addAll(JGitUtils.getRepositoryList(GitBlitSuite.REPOSITORIES, true, true));\r
+ list.addAll(JGitUtils.getRepositoryList(GitBlitSuite.REPOSITORIES, false, true));\r
assertTrue("No repositories found in " + GitBlitSuite.REPOSITORIES, list.size() > 0);\r
}\r
\r