\r
#### fixes\r
\r
+- Fixed bug in create/rename repository if you explicitly specified the alias for the root group (e.g. main/myrepo) (issue 143)\r
- Wrapped Markdown parser with improved exception handler (issue 142)\r
- Fixed duplicate entries in repository cache (issue 140)\r
- Fixed connection leak in LDAPUserService (issue 139)\r
public void updateRepositoryModel(String repositoryName, RepositoryModel repository,\r
boolean isCreate) throws GitBlitException {\r
Repository r = null;\r
+ String projectPath = StringUtils.getFirstPathElement(repository.name);\r
+ if (!StringUtils.isEmpty(projectPath)) {\r
+ if (projectPath.equalsIgnoreCase(getString(Keys.web.repositoryRootGroupName, "main"))) {\r
+ // strip leading group name\r
+ repository.name = repository.name.substring(projectPath.length() + 1);\r
+ }\r
+ }\r
if (isCreate) {\r
// ensure created repository name ends with .git\r
if (!repository.name.toLowerCase().endsWith(org.eclipse.jgit.lib.Constants.DOT_GIT_EXT)) {\r