James Moger
2012-11-28 0ad6d9ea8d22dcf15cc9c29bb68a33c7b9309674
Fixed regression for folder history links (issue-166)
1 files modified
2 ■■■■■ changed files
src/com/gitblit/wicket/panels/HistoryPanel.java 2 ●●●●● patch | view | raw | blame | history
src/com/gitblit/wicket/panels/HistoryPanel.java
@@ -86,10 +86,12 @@
                tw.addTree(commit.getTree());
                tw.setFilter(PathFilterGroup.createFromStrings(Collections.singleton(path)));
                while (tw.next()) {
                    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 {
                tw.release();