ObjectInserter odi = repository.newObjectInserter();
try {
// Create the in-memory index of the new/updated issue.
DirCache index = createIndex(repository, headId, sourceFolder,
obliterate);
ObjectId indexTreeId = index.writeTree(odi);
// Create a commit object
PersonIdent author = new PersonIdent("Moxie",
"moxie@localhost");
CommitBuilder commit = new CommitBuilder();