From: James Moger Date: Wed, 28 Nov 2012 22:06:09 +0000 (-0500) Subject: Fixed regression for folder history links (issue 166) X-Git-Tag: v1.2.0~66 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0ad6d9ea8d22dcf15cc9c29bb68a33c7b9309674;p=gitblit.git Fixed regression for folder history links (issue 166) --- diff --git a/src/com/gitblit/wicket/panels/HistoryPanel.java b/src/com/gitblit/wicket/panels/HistoryPanel.java index 838f103e..95ed3b4b 100644 --- a/src/com/gitblit/wicket/panels/HistoryPanel.java +++ b/src/com/gitblit/wicket/panels/HistoryPanel.java @@ -86,9 +86,11 @@ public class HistoryPanel extends BasePanel { tw.addTree(commit.getTree()); tw.setFilter(PathFilterGroup.createFromStrings(Collections.singleton(path))); while (tw.next()) { - matchingPath = new PathChangeModel(tw.getPathString(), tw.getPathString(), 0, tw + if (tw.getPathString().equals(path)) { + matchingPath = new PathChangeModel(tw.getPathString(), tw.getPathString(), 0, tw .getRawMode(0), tw.getObjectId(0).getName(), commit.getId().getName(), ChangeType.MODIFY); + } } } catch (Exception e) { } finally {