From 5cc4f299b2a1138687cbaea73257abab08e245a4 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Sat, 04 Jun 2011 14:23:55 -0400 Subject: [PATCH] Fixed refs linking problem. Author metrics are lowercase. --- src/com/gitblit/GitBlit.java | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/com/gitblit/GitBlit.java b/src/com/gitblit/GitBlit.java index c6eb613..595a5ee 100644 --- a/src/com/gitblit/GitBlit.java +++ b/src/com/gitblit/GitBlit.java @@ -142,7 +142,7 @@ public List<String> getRepositoryList() { return JGitUtils.getRepositoryList(repositoriesFolder, exportAll, - storedSettings.getBoolean(Keys.git.nestedRepositories, true)); + storedSettings.getBoolean(Keys.git.searchRepositoriesSubfolders, true)); } public Repository getRepository(String repositoryName) { @@ -225,6 +225,10 @@ boolean isCreate) throws GitBlitException { Repository r = null; if (isCreate) { + // ensure created repository name ends with .git + if (!repository.name.endsWith(org.eclipse.jgit.lib.Constants.DOT_GIT_EXT)) { + repository.name += org.eclipse.jgit.lib.Constants.DOT_GIT_EXT; + } if (new File(repositoriesFolder, repository.name).exists()) { throw new GitBlitException(MessageFormat.format( "Can not create repository ''{0}'' because it already exists.", -- Gitblit v1.9.1