AbstractChangeUpdate: Set author/committer in superclass

This is always set to the same value. Don't rely on implementations to
set it, just do it once in the wrapper.

Change-Id: I963f5130215b2b8114e8d8729824371e6e182041
This commit is contained in:
Dave Borowitz
2016-02-23 11:15:32 -05:00
parent 15cddfecc0
commit f5c06d8e2a
3 changed files with 8 additions and 10 deletions

View File

@@ -234,8 +234,6 @@ public class ChangeDraftUpdate extends AbstractChangeUpdate {
protected CommitBuilder applyImpl(ObjectInserter ins)
throws OrmException, IOException {
CommitBuilder cb = new CommitBuilder();
cb.setAuthor(newAuthorIdent());
cb.setCommitter(new PersonIdent(serverIdent, when));
cb.setMessage("Update draft comments");
AtomicBoolean removedAllComments = new AtomicBoolean();
ObjectId treeId = storeCommentsInNotes(ins, removedAllComments);