From 0ad6d9ea8d22dcf15cc9c29bb68a33c7b9309674 Mon Sep 17 00:00:00 2001 From: James Moger Date: Wed, 28 Nov 2012 17:06:09 -0500 Subject: [PATCH] Fixed regression for folder history links (issue 166) --- src/com/gitblit/wicket/panels/HistoryPanel.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- 2.39.5