Skip to content

Commit dc17fe2

Browse files
committed
Update for GitBucket 4.21.0
1 parent 821a9fe commit dc17fe2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ This is a GitBucket plug-in which provides code snippet repository like Gist.
44

55
Plugin version | GitBucket version
66
:--------------|:--------------------
7+
4.12.x | 4.21.x -
78
4.11.x | 4.19.x -
89
4.10.x | 4.15.x - 4.18.x
910
4.9.x | 4.14.x

Diff for: build.sbt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
organization := "io.github.gitbucket"
22
name := "gitbucket-gist-plugin"
3-
version := "4.11.0"
3+
version := "4.12.0"
44
scalaVersion := "2.12.4"
5-
gitbucketVersion := "4.19.0"
5+
gitbucketVersion := "4.21.0"
66

77
scalacOptions := Seq("-deprecation", "-feature", "-language:postfixOps")
88
javacOptions in compile ++= Seq("-target", "8", "-source", "8")

Diff for: src/main/scala/Plugin.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ class Plugin extends gitbucket.core.plugin.Plugin {
3333
new Version("4.9.0"),
3434
new Version("4.9.1"),
3535
new Version("4.10.0"),
36-
new Version("4.11.0")
36+
new Version("4.11.0"),
37+
new Version("4.12.0")
3738
)
3839

3940
override def initialize(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Unit = {

Diff for: src/main/scala/gitbucket/gist/controller/GistController.scala

+1-3
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,7 @@ trait GistControllerBase extends ControllerBase {
193193
case Right((revisions, hasNext)) => {
194194
val commits = revisions.map { revision =>
195195
defining(JGitUtil.getRevCommitFromId(git, git.getRepository.resolve(revision.id))){ revCommit =>
196-
JGitUtil.getDiffs(git, revision.id, true) match { case (diffs, oldCommitId) =>
197-
(revision, diffs)
198-
}
196+
(revision, JGitUtil.getDiffs(git, None, revision.id, true, false))
199197
}
200198
}
201199

0 commit comments

Comments
 (0)