From f08c1ca55e1ffaef81f3d6514aa4bffa5d716c5b Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Sun, 05 Jun 2011 15:21:12 -0400 Subject: [PATCH] Added git-notes to docs. Fixed parent path mode. --- src/com/gitblit/wicket/pages/TreePage.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/com/gitblit/wicket/pages/TreePage.java b/src/com/gitblit/wicket/pages/TreePage.java index ac84e73..f796266 100644 --- a/src/com/gitblit/wicket/pages/TreePage.java +++ b/src/com/gitblit/wicket/pages/TreePage.java @@ -26,6 +26,7 @@ import org.apache.wicket.markup.repeater.data.DataView; import org.apache.wicket.markup.repeater.data.ListDataProvider; import org.eclipse.jgit.lib.Constants; +import org.eclipse.jgit.lib.FileMode; import org.eclipse.jgit.lib.Repository; import org.eclipse.jgit.revwalk.RevCommit; @@ -70,7 +71,7 @@ if (path.lastIndexOf('/') > -1) { parentPath = path.substring(0, path.lastIndexOf('/')); } - PathModel model = new PathModel("..", parentPath, 0, 40000, objectId); + PathModel model = new PathModel("..", parentPath, 0, FileMode.TREE.getBits(), objectId); model.isParentPath = true; paths.add(0, model); } -- Gitblit v1.9.1