Rebase: Use committer identity in new commit

The RefLogIdent should only be used in RefLogs.
Never in long term commit objects.

Change-Id: Ib32dec5ad463b23b4e967b503dacc4643daec673
This commit is contained in:
Shawn Pearce 2015-11-03 09:54:20 -08:00
parent b54d38dcbe
commit 933cdf5966

View File

@ -199,7 +199,7 @@ public class RebaseChangeOp extends BatchUpdate.Op {
cb.setCommitter(committerIdent);
} else {
cb.setCommitter(ctx.getUser().asIdentifiedUser()
.newRefLogIdent(ctx.getWhen(), ctx.getTimeZone()));
.newCommitterIdent(ctx.getWhen(), ctx.getTimeZone()));
}
ObjectId objectId = ctx.getInserter().insert(cb);
ctx.getInserter().flush();