commit | 1e4b4d31cbcc5d13e09e8b6258b13754fcd10b0c | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Tue Aug 30 21:29:54 2016 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Tue Aug 30 21:30:04 2016 +0900 |
tree | dc04d83a3c981644ffad3f1b0be4b2c0d6205218 | |
parent | bb7fac73ffbb175f0e2991772ca8fe23ba8ae897 [diff] |
Adapt to upstream changes ProjectControl#canReadCommit now takes a Repository, not a RevWalk. Change-Id: I5a0c845f6de25bd4d2a5c67df738589055d097d6
diff --git a/src/main/java/com/googlesource/gerrit/plugins/xdocs/XDocServlet.java b/src/main/java/com/googlesource/gerrit/plugins/xdocs/XDocServlet.java index ebae46c..89df7a0 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/xdocs/XDocServlet.java +++ b/src/main/java/com/googlesource/gerrit/plugins/xdocs/XDocServlet.java
@@ -334,7 +334,7 @@ throws ResourceNotFoundException, IOException { try (RevWalk rw = new RevWalk(repo)) { RevCommit commit = rw.parseCommit(revId); - if (!projectControl.canReadCommit(db.get(), rw, commit)) { + if (!projectControl.canReadCommit(db.get(), repo, commit)) { throw new ResourceNotFoundException(); } }