Skip to content

Release history

gitbucket releases

Git platform powered with easy installation, high extensibility & GitHub API compatibility (alternative to GitHub).

All releases

5 shown

4.44.0 Feature
Notable features
  • Prevent pushes from non‑allowed users via enhanced branch protection
  • Option to apply branch protection restrictions to administrator accounts
Full changelog
  • Enhanced branch protection which supports the following settings:
    • Prevent pushes from non-allowed users
    • Whether to apply restrictions to administrator users as well
  • Improve logging for initialization errors
4.43.0 Breaking risk
⚠ Upgrade required
  • If `~/.gitbucket/database.conf` contains `url = "jdbc:h2:${DatabaseHome};MVCC=true"`, remove the `;MVCC=true` segment before upgrading.
  • Manual migration steps: download H2 1.4.199, export database to dump.sql, then download H2 2.3.232 and runscript using the same dump.sql.
Breaking changes
  • Minimum H2 database version bumped to 2.3.232; requires manual dump and recreation from previous 1.x versions.
Full changelog
  • Upgrade H2 database from 1.x to 2.x

Note that upgrading from h2 1.x to 2.x requires data file migration: https://www.h2database.com/html/migration-to-v2.html

It can't be done automatically using GitBucket's auto migration mechanism because it relies on database itself. So, users who use h2 will have to dump and recreate their database manually with the following steps:

# Export database using the current version of H2
$ curl -O https://repo1.maven.org/maven2/com/h2database/h2/1.4.199/h2-1.4.199.jar
$ java -cp h2-1.4.199.jar org.h2.tools.Script -url "jdbc:h2:~/.gitbucket/data" -user sa -password sa -script dump.sql

# Recreate database using the new version of H2
$ curl -O https://repo1.maven.org/maven2/com/h2database/h2/2.3.232/h2-2.3.232.jar
$ java -cp h2-2.3.232.jar org.h2.tools.RunScript -url "jdbc:h2:~/.gitbucket/data" -user sa -password sa -script dump.sql

In addition, if ~/.gitbucket/database.conf has the following configuration, remove ;MVCC=true from url.

db {
  url = "jdbc:h2:${DatabaseHome};MVCC=true" // => "jdbc:h2:${DatabaseHome}"
  ...
}

Beta — feedback welcome: [email protected]