if (head == null || head.getObjectId() == null)
return; // throw exception?
if (head.getName().startsWith(Constants.R_HEADS)) {
final RefUpdate newHead = clonedRepo.updateRef(Constants.HEAD);
newHead.disableRefLog();
newHead.link(head.getName());
addMergeConfig(clonedRepo, head);
}
final RevCommit commit = parseCommit(clonedRepo, head);