mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-01-08 08:32:20 +01:00
Fixed deprecation warning, part 1/2
This commit is contained in:
@@ -256,9 +256,9 @@ trait ApiControllerBase extends ControllerBase {
|
||||
} else {
|
||||
val refs = git
|
||||
.getRepository()
|
||||
.getAllRefs()
|
||||
.getRefDatabase()
|
||||
.getRefsByPrefix("refs/")
|
||||
.asScala
|
||||
.collect { case (str, ref) if str.startsWith("refs/" + revstr) => ref }
|
||||
|
||||
JsonFormat(refs.map { ref =>
|
||||
val sha = ref.getObjectId().name()
|
||||
|
||||
Reference in New Issue
Block a user