commit | 453e4aeceba9a9a093c3a40de90b6fd99b5b2068 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Fri Aug 19 10:27:31 2016 +0200 |
committer | Edwin Kempin <ekempin@google.com> | Fri Aug 19 10:27:31 2016 +0200 |
tree | 9834f8d3c886f9ef4dd7824caf0d30ede68d5855 | |
parent | 318cc182b2335ccd0e15f55c94679c2176a6efdb [diff] |
Fix build: Adapt to changed method signature in Gerrit core Change-Id: Ib1ba346131c6e12e2077ba221c392e2286dafbb5 Signed-off-by: Edwin Kempin <ekempin@google.com>
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 89df7a0..ebae46c 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(), repo, commit)) { + if (!projectControl.canReadCommit(db.get(), rw, commit)) { throw new ResourceNotFoundException(); } }