]> source.dussan.org Git - gitblit.git/commitdiff
Fixed regression for folder history links (issue 166)
authorJames Moger <james.moger@gitblit.com>
Wed, 28 Nov 2012 22:06:09 +0000 (17:06 -0500)
committerJames Moger <james.moger@gitblit.com>
Wed, 28 Nov 2012 22:06:09 +0000 (17:06 -0500)
src/com/gitblit/wicket/panels/HistoryPanel.java

index 838f103e5ed2fb1aa9bd7eb692df63ae8c85d379..95ed3b4b4d3c752a38686fac575263f2058719bb 100644 (file)
@@ -86,9 +86,11 @@ public class HistoryPanel extends BasePanel {
                                tw.addTree(commit.getTree());\r
                                tw.setFilter(PathFilterGroup.createFromStrings(Collections.singleton(path)));\r
                                while (tw.next()) {\r
-                                       matchingPath = new PathChangeModel(tw.getPathString(), tw.getPathString(), 0, tw\r
+                                       if (tw.getPathString().equals(path)) {\r
+                                               matchingPath = new PathChangeModel(tw.getPathString(), tw.getPathString(), 0, tw\r
                                                        .getRawMode(0), tw.getObjectId(0).getName(), commit.getId().getName(),\r
                                                        ChangeType.MODIFY);\r
+                                       }\r
                                }\r
                        } catch (Exception e) {\r
                        } finally {\r