From 7670a00feb789cd4bd16d87144f6f94adb1f43db Mon Sep 17 00:00:00 2001 From: James Moger Date: Tue, 4 Dec 2012 11:17:08 -0500 Subject: [PATCH] Fixed regresion in path name display in tree page --- src/com/gitblit/wicket/pages/TreePage.java | 4 ++-- 1 file 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))); -- 2.39.5