fix parent. only path exists

This commit is contained in:
nazoking
2015-03-04 03:37:15 +09:00
parent dc0aa0851e
commit e408eb43bb

View File

@@ -768,7 +768,8 @@ object JGitUtil {
c.getAuthorIdent.getName,
c.getAuthorIdent.getEmailAddress,
c.getAuthorIdent.getWhen,
c.getParents().sortBy(_.getCommitTime()).lastOption.map(_.name),
Option(git.log.add(c).addPath(path).setSkip(1).setMaxCount(2).call.iterator.next)
.map(_.name),
c.getCommitterIdent.getWhen,
c.getShortMessage,
Set.empty)