summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-06-09 14:01:44 -0400
committerJames Moger <james.moger@gitblit.com>2014-06-09 14:01:44 -0400
commit65d4270b188ae7b6b3ef7a70fca35c4d7e7696af (patch)
tree4001167a8ad4ee37a86a9446b6d4053700e987f7 /src
parent7cf5ed8024684de07aae6c91b0610e95b88494b4 (diff)
downloadgitblit-65d4270b188ae7b6b3ef7a70fca35c4d7e7696af.tar.gz
gitblit-65d4270b188ae7b6b3ef7a70fca35c4d7e7696af.zip
Fix substring regression in repository name panel
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/gitblit/wicket/panels/RepositoryNamePanel.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/panels/RepositoryNamePanel.java b/src/main/java/com/gitblit/wicket/panels/RepositoryNamePanel.java
index d3e493ed..f381a45e 100644
--- a/src/main/java/com/gitblit/wicket/panels/RepositoryNamePanel.java
+++ b/src/main/java/com/gitblit/wicket/panels/RepositoryNamePanel.java
@@ -84,10 +84,11 @@ public class RepositoryNamePanel extends BasePanel {
// set the defaultProject to the current repository project
if (StringUtils.isEmpty(repository.projectPath)) {
defaultPath = "/";
+ defaultName = repository.name;
} else {
defaultPath = repository.projectPath + "/";
+ defaultName = repository.name.substring(defaultPath.length());
}
- defaultName = repository.name.substring(defaultPath.length());
pathNames.add(defaultPath);
}