mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 13:35:50 +01:00
Replace existing code with JGitUtil#getRevCommitFromId().
This commit is contained in:
@@ -34,9 +34,9 @@ object JGitUtil {
|
||||
* @param commitId the ObjectId of the commit
|
||||
* @return the RevCommit for the specified commit
|
||||
*/
|
||||
def getRevCommitFromId(git: Git, commmitId: ObjectId): RevCommit = {
|
||||
def getRevCommitFromId(git: Git, commitId: ObjectId): RevCommit = {
|
||||
val revWalk = new RevWalk(git.getRepository)
|
||||
val revCommit = revWalk.parseCommit(commmitId)
|
||||
val revCommit = revWalk.parseCommit(commitId)
|
||||
revWalk.dispose
|
||||
revCommit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user