summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-11-28 17:06:09 -0500
committerJames Moger <james.moger@gitblit.com>2012-11-28 17:06:09 -0500
commit0ad6d9ea8d22dcf15cc9c29bb68a33c7b9309674 (patch)
tree98b208ac269a13d9bc2f49c704c436e300029173 /src/com/gitblit
parentf16b1c4be237dd3953ef39d29088cc1ed0248b2b (diff)
downloadgitblit-0ad6d9ea8d22dcf15cc9c29bb68a33c7b9309674.tar.gz
gitblit-0ad6d9ea8d22dcf15cc9c29bb68a33c7b9309674.zip
Fixed regression for folder history links (issue 166)
Diffstat (limited to 'src/com/gitblit')
-rw-r--r--src/com/gitblit/wicket/panels/HistoryPanel.java4
1 files changed, 3 insertions, 1 deletions
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 {