summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/pages/TreePage.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-06-05 15:21:12 -0400
committerJames Moger <james.moger@gitblit.com>2011-06-05 15:21:12 -0400
commitf08c1ca55e1ffaef81f3d6514aa4bffa5d716c5b (patch)
tree7288d11ecaf50228f46962ca4f09adbc155ff161 /src/com/gitblit/wicket/pages/TreePage.java
parent5cc4f299b2a1138687cbaea73257abab08e245a4 (diff)
downloadgitblit-f08c1ca55e1ffaef81f3d6514aa4bffa5d716c5b.tar.gz
gitblit-f08c1ca55e1ffaef81f3d6514aa4bffa5d716c5b.zip
Added git-notes to docs. Fixed parent path mode.
Diffstat (limited to 'src/com/gitblit/wicket/pages/TreePage.java')
-rw-r--r--src/com/gitblit/wicket/pages/TreePage.java3
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 ac84e73a..f7962664 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.Item;
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 @@ public class TreePage extends RepositoryPage {
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);
}