diff --git a/src/main/resources/update/1_13.sql b/src/main/resources/update/1_13.sql new file mode 100644 index 0000000..ed26f65 --- /dev/null +++ b/src/main/resources/update/1_13.sql @@ -0,0 +1 @@ +DROP TABLE COMMIT_LOG; \ No newline at end of file diff --git a/src/main/scala/servlet/AutoUpdateListener.scala b/src/main/scala/servlet/AutoUpdateListener.scala index 8cafb60..9ffed83 100644 --- a/src/main/scala/servlet/AutoUpdateListener.scala +++ b/src/main/scala/servlet/AutoUpdateListener.scala @@ -50,6 +50,7 @@ * The history of versions. A head of this sequence is the current BitBucket version. */ val versions = Seq( + Version(1, 13), Version(1, 12), Version(1, 11), Version(1, 10), diff --git a/src/main/scala/util/JGitUtil.scala b/src/main/scala/util/JGitUtil.scala index cd82de0..ed58555 100644 --- a/src/main/scala/util/JGitUtil.scala +++ b/src/main/scala/util/JGitUtil.scala @@ -573,7 +573,9 @@ /** * Returns all commit id in the specified repository. */ - def getAllCommitIds(git: Git): Seq[String] = { + def getAllCommitIds(git: Git): Seq[String] = if(isEmpty(git)) { + Nil + } else { val existIds = new scala.collection.mutable.ListBuffer[String]() val i = git.log.all.call.iterator while(i.hasNext){