final PersonIdent personIdent = new PersonIdent(authorName, authorEmail);
return gitWriteOperation(personIdent, new GitOperation<CommitInfo>() {
public CommitInfo call(Git git, GitContext context) throws Exception {
checkoutBranch(git, branch);
File rootDir = getRootGitDirectory(git);
CommitInfo answer = doCreateDirectory(git, rootDir, branch, path, personIdent, commitMessage);
context.commitMessage(commitMessage);
return answer;
}
});
}