diff --git a/build.sbt b/build.sbt index 4a57036..5b84d80 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ organization := "io.github.gitbucket" name := "gitbucket-gist-plugin" version := "4.22.0" scalaVersion := "2.13.12" -gitbucketVersion := "4.39.0" +gitbucketVersion := "4.40.0" scalacOptions := Seq("-deprecation", "-feature", "-language:postfixOps") Compile / javacOptions ++= Seq("-target", "11", "-source", "11") diff --git a/src/main/scala/gitbucket/gist/controller/GistController.scala b/src/main/scala/gitbucket/gist/controller/GistController.scala index 10b2112..988ef1c 100644 --- a/src/main/scala/gitbucket/gist/controller/GistController.scala +++ b/src/main/scala/gitbucket/gist/controller/GistController.scala @@ -114,7 +114,7 @@ trait GistControllerBase extends ControllerBase { val repoName = StringUtil.md5(userName + " " + datetime(new java.util.Date())) val gitdir = new File(GistRepoDir, userName + "/" + repoName) gitdir.mkdirs() - JGitUtil.initRepository(gitdir) + JGitUtil.initRepository(gitdir, "master") // Insert record registerGist(