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:
Shawn O. Pearce
2009-06-13 18:19:37 -07:00
parent e6b34af43c
commit de59da6bc4

View File

@@ -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();