mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-12 16:35:52 +01:00
Merge pull request #1391 from uli-heller/jgit-4.6
Upgrade JGIT to jgit: 4.6.0.201612231935-r
This commit is contained in:
@@ -22,8 +22,8 @@ resolvers ++= Seq(
|
|||||||
)
|
)
|
||||||
libraryDependencies ++= Seq(
|
libraryDependencies ++= Seq(
|
||||||
"org.scala-lang.modules" %% "scala-java8-compat" % "0.7.0",
|
"org.scala-lang.modules" %% "scala-java8-compat" % "0.7.0",
|
||||||
"org.eclipse.jgit" % "org.eclipse.jgit.http.server" % "4.1.2.201602141800-r",
|
"org.eclipse.jgit" % "org.eclipse.jgit.http.server" % "4.6.0.201612231935-r",
|
||||||
"org.eclipse.jgit" % "org.eclipse.jgit.archive" % "4.1.2.201602141800-r",
|
"org.eclipse.jgit" % "org.eclipse.jgit.archive" % "4.6.0.201612231935-r",
|
||||||
"org.scalatra" %% "scalatra" % ScalatraVersion,
|
"org.scalatra" %% "scalatra" % ScalatraVersion,
|
||||||
"org.scalatra" %% "scalatra-json" % ScalatraVersion,
|
"org.scalatra" %% "scalatra-json" % ScalatraVersion,
|
||||||
"org.json4s" %% "json4s-jackson" % "3.3.0",
|
"org.json4s" %% "json4s-jackson" % "3.3.0",
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ trait ApiControllerBase extends ControllerBase {
|
|||||||
using(Git.open(getRepositoryDir(params("owner"), params("repo")))) { git =>
|
using(Git.open(getRepositoryDir(params("owner"), params("repo")))) { git =>
|
||||||
//JsonFormat( (revstr, git.getRepository().resolve(revstr)) )
|
//JsonFormat( (revstr, git.getRepository().resolve(revstr)) )
|
||||||
// getRef is deprecated by jgit-4.2. use exactRef() or findRef()
|
// getRef is deprecated by jgit-4.2. use exactRef() or findRef()
|
||||||
val sha = git.getRepository().getRef(revstr).getObjectId().name()
|
val sha = git.getRepository().exactRef(revstr).getObjectId().name()
|
||||||
JsonFormat(ApiRef(revstr, ApiObject(sha)))
|
JsonFormat(ApiRef(revstr, ApiObject(sha)))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user