mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-07-07 16:52:08 +02:00
fix parent. only path exists
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user