diff options
-rw-r--r-- | src/main/java/com/gitblit/wicket/panels/RepositoryNamePanel.java | 3 |
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);
}
|