|
|
|
@ -184,9 +184,8 @@ public class CommitCommand extends GitCommand<RevCommit> {
|
|
|
|
|
if (amend) { |
|
|
|
|
RevCommit previousCommit = new RevWalk(repo) |
|
|
|
|
.parseCommit(headId); |
|
|
|
|
RevCommit[] p = previousCommit.getParents(); |
|
|
|
|
for (int i = 0; i < p.length; i++) |
|
|
|
|
parents.add(0, p[i].getId()); |
|
|
|
|
for (RevCommit p : previousCommit.getParents()) |
|
|
|
|
parents.add(p.getId()); |
|
|
|
|
if (author == null) |
|
|
|
|
author = previousCommit.getAuthorIdent(); |
|
|
|
|
} else { |
|
|
|
|