fix: make some methods call JGitUtil.getCommitLog with ObjectId instead of strings (#3653)

Co-authored-by: Thomas Geier <thomas.geier@solidat.de>
This commit is contained in:
ziggystar
2024-12-10 00:25:38 +01:00
committed by GitHub
parent a2242a3cb7
commit 92304ac8c6

View File

@@ -296,7 +296,7 @@ class CommitLogHook(owner: String, repository: String, pusher: String, baseUrl:
} else { } else {
command.getType match { command.getType match {
case ReceiveCommand.Type.DELETE => Nil case ReceiveCommand.Type.DELETE => Nil
case _ => JGitUtil.getCommitLog(git, command.getOldId.name, command.getNewId.name) case _ => JGitUtil.getCommitLog(git, command.getOldId, command.getNewId)
} }
} }
} }
@@ -492,7 +492,7 @@ class WikiCommitHook(owner: String, repository: String, pusher: String, baseUrl:
} else { } else {
command.getType match { command.getType match {
case ReceiveCommand.Type.DELETE => None case ReceiveCommand.Type.DELETE => None
case _ => Some((command.getOldId.getName, command.getNewId.name)) case _ => Some((command.getOldId, command.getNewId))
} }
} }