summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/gitblit/wicket/pages/TreePage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/gitblit/wicket/pages/TreePage.java b/src/com/gitblit/wicket/pages/TreePage.java
index 5396ed6c..b8ce7b48 100644
--- a/src/com/gitblit/wicket/pages/TreePage.java
+++ b/src/com/gitblit/wicket/pages/TreePage.java
@@ -144,11 +144,11 @@ public class TreePage extends RepositoryPage {
item.add(links);
} else {
// blob link
- String displayPath = entry.path;
+ String displayPath = entry.name;
String path = entry.path;
if (entry.isSymlink()) {
path = JGitUtils.getStringContent(getRepository(), getCommit().getTree(), path);
- displayPath = entry.path + " -> " + path;
+ displayPath = entry.name + " -> " + path;
}
item.add(WicketUtils.getFileImage("pathIcon", entry.name));
item.add(new Label("pathSize", byteFormat.format(entry.size)));