|
|
@ -204,8 +204,7 @@ public class CommitBuilder { |
|
|
|
setParentId(additionalParent); |
|
|
|
setParentId(additionalParent); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
ObjectId[] newParents = new ObjectId[parentIds.length + 1]; |
|
|
|
ObjectId[] newParents = new ObjectId[parentIds.length + 1]; |
|
|
|
for (int i = 0; i < parentIds.length; i++) |
|
|
|
System.arraycopy(parentIds, 0, newParents, 0, parentIds.length); |
|
|
|
newParents[i] = parentIds[i]; |
|
|
|
|
|
|
|
newParents[parentIds.length] = additionalParent.copy(); |
|
|
|
newParents[parentIds.length] = additionalParent.copy(); |
|
|
|
parentIds = newParents; |
|
|
|
parentIds = newParents; |
|
|
|
} |
|
|
|
} |
|
|
|