]> source.dussan.org Git - gitblit.git/commitdiff
Fixed regresion in path name display in tree page
authorJames Moger <james.moger@gitblit.com>
Tue, 4 Dec 2012 16:17:08 +0000 (11:17 -0500)
committerJames Moger <james.moger@gitblit.com>
Tue, 4 Dec 2012 16:17:08 +0000 (11:17 -0500)
src/com/gitblit/wicket/pages/TreePage.java

index 5396ed6c71738b62f639edaa20c36458b726d85f..b8ce7b489199077351719205b8aa522caabadc1c 100644 (file)
@@ -144,11 +144,11 @@ public class TreePage extends RepositoryPage {
                                                item.add(links);                                                \r
                                        } else {\r
                                                // blob link\r
-                                               String displayPath = entry.path;\r
+                                               String displayPath = entry.name;\r
                                                String path = entry.path;\r
                                                if (entry.isSymlink()) {\r
                                                        path = JGitUtils.getStringContent(getRepository(), getCommit().getTree(), path);\r
-                                                       displayPath = entry.path + " -> " + path;\r
+                                                       displayPath = entry.name + " -> " + path;\r
                                                }\r
                                                item.add(WicketUtils.getFileImage("pathIcon", entry.name));\r
                                                item.add(new Label("pathSize", byteFormat.format(entry.size)));\r