Skip to content

gitbucket

Git Forges

A self‑hosted Git web platform with GitHub API compatibility, written in Scala

Scala Latest 4.46.1 · 1mo ago Security brief →

Features

  • Public and private Git repositories (HTTP/HTTPS, SSH)
  • Git LFS support
  • Issues, Pull Requests, Wiki and activity timeline
  • Plugin system for extensibility

Recent releases

View all 5 releases →
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}"
  ...
}

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

About

Stars
9,371
Forks
1,265
Languages
Scala HTML JavaScript

Install & Platforms

Install via
binary shell-script

Alternative to

GitHub

Beta — feedback welcome: [email protected]