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 RevWalk rw = new RevWalk(repo);
|
||||||
final RevCommit bCommit = rw.parseCommit(ObjectId.fromString(id.get()));
|
final RevCommit bCommit = rw.parseCommit(ObjectId.fromString(id.get()));
|
||||||
if (bCommit.getParentCount() > 0) {
|
if (bCommit.getParentCount() > 0) {
|
||||||
rw.parseHeaders(bCommit.getParent(0));
|
rw.parse(bCommit.getParent(0));
|
||||||
aTree = bCommit.getParent(0).getTree();
|
aTree = bCommit.getParent(0).getTree();
|
||||||
} else {
|
} else {
|
||||||
aTree = emptyTree();
|
aTree = emptyTree();
|
||||||
|
|||||||
Reference in New Issue
Block a user