Fix compile error in PatchFile
This was accidentally built against a bleeding edge version of JGit, where the API was changed. Move it back to the stable API. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -51,7 +51,7 @@ public class PatchFile {
|
||||
final RevWalk rw = new RevWalk(repo);
|
||||
final RevCommit bCommit = rw.parseCommit(ObjectId.fromString(id.get()));
|
||||
if (bCommit.getParentCount() > 0) {
|
||||
rw.parseHeaders(bCommit.getParent(0));
|
||||
rw.parse(bCommit.getParent(0));
|
||||
aTree = bCommit.getParent(0).getTree();
|
||||
} else {
|
||||
aTree = emptyTree();
|
||||
|
||||
Reference in New Issue
Block a user