summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/pages/RootSubPage.java
diff options
context:
space:
mode:
authorFlorian Zschocke <florian.zschocke@cycos.com>2013-07-10 09:14:29 +0200
committerFlorian Zschocke <florian.zschocke@cycos.com>2013-08-26 12:30:53 +0200
commitcb946fa57e9dd4ca0853f079331c73dc0331c1e7 (patch)
tree50c94e40a79dbff7bc0c2e3420bc4d5220f66d70 /src/main/java/com/gitblit/wicket/pages/RootSubPage.java
parent8eaf843d60983d433435ac2a89e1a63b8de02338 (diff)
downloadgitblit-cb946fa57e9dd4ca0853f079331c73dc0331c1e7.tar.gz
gitblit-cb946fa57e9dd4ca0853f079331c73dc0331c1e7.zip
Refactor logic for user repository path into one class.
Gather logic for building the path/name of a personal user repository into one class.
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/RootSubPage.java')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/RootSubPage.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/RootSubPage.java b/src/main/java/com/gitblit/wicket/pages/RootSubPage.java
index e7e12ccc..17ba4b27 100644
--- a/src/main/java/com/gitblit/wicket/pages/RootSubPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/RootSubPage.java
@@ -27,6 +27,7 @@ import com.gitblit.Constants.AuthorizationControl;
import com.gitblit.GitBlit;
import com.gitblit.models.RepositoryModel;
import com.gitblit.models.UserModel;
+import com.gitblit.utils.ModelUtils;
import com.gitblit.utils.StringUtils;
/**
@@ -80,7 +81,7 @@ public abstract class RootSubPage extends RootPage {
// all repositories
repos.add(".*");
// all repositories excluding personal repositories
- repos.add("[^~].*");
+ if (ModelUtils.getUserRepoPrefix().length() == 1) repos.add("[^" + ModelUtils.getUserRepoPrefix() +"].*");
}
for (String repo : GitBlit.self().getRepositoryList()) {