Skip to content

Commit 0db23b7

Browse files
committed
commons-compress 1.25.0
1 parent 66d9ce3 commit 0db23b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ libraryDependencies ++= Seq(
3939
"commons-io" % "commons-io" % "2.15.0",
4040
"io.github.gitbucket" % "solidbase" % "1.0.5",
4141
"io.github.gitbucket" % "markedj" % "1.0.18",
42-
"org.apache.commons" % "commons-compress" % "1.24.0",
42+
"org.apache.commons" % "commons-compress" % "1.25.0",
4343
"org.apache.commons" % "commons-email" % "1.5",
4444
"commons-net" % "commons-net" % "3.10.0",
4545
"org.apache.httpcomponents" % "httpclient" % "4.5.14",

src/main/scala/gitbucket/core/controller/RepositoryViewerController.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -1238,8 +1238,8 @@ trait RepositoryViewerControllerBase extends ControllerBase {
12381238
repository: RepositoryService.RepositoryInfo,
12391239
path: String
12401240
) = {
1241-
def archive(revision: String, archiveFormat: String, archive: ArchiveOutputStream)(
1242-
entryCreator: (String, Long, java.util.Date, Int) => ArchiveEntry
1241+
def archive[A <: ArchiveEntry](revision: String, archiveFormat: String, archive: ArchiveOutputStream[A])(
1242+
entryCreator: (String, Long, java.util.Date, Int) => A
12431243
): Unit = {
12441244
Using.resource(Git.open(getRepositoryDir(repository.owner, repository.name))) { git =>
12451245
val oid = git.getRepository.resolve(revision)
@@ -1281,7 +1281,7 @@ trait RepositoryViewerControllerBase extends ControllerBase {
12811281
)
12821282
}
12831283

1284-
val entry: ArchiveEntry = entryCreator(entryPath, size, date, mode)
1284+
val entry: A = entryCreator(entryPath, size, date, mode)
12851285
archive.putArchiveEntry(entry)
12861286
Using.resource(new FileInputStream(tempFile)) { in =>
12871287
IOUtils.copy(in, archive)

0 commit comments

Comments
 (0)