commit | ab1fbe6a9ce7f1c366188cfa7a2f9444eac631ec | [log] [tgz] |
---|---|---|
author | Dmitrii Filippov <dmfilippov@google.com> | Mon Mar 27 10:38:07 2023 +0200 |
committer | Dmitrii Filippov <dmfilippov@google.com> | Mon Mar 27 11:37:42 2023 +0200 |
tree | e29e627dac621b81570fa08db0fe9be20deaf7f9 | |
parent | be3d4c05cf3429efbe5ef48802e9b03b060af261 [diff] |
Sanitize project name on parsing. The gerrit API can be called with a non-sanitized projet name (e.g. it ends with "/" or ".git"). The open-source Gerrit usually rejects such names, while internal google version sanitize it, but only in some situations (e.g. when the repository is open). To avoid ambiguity between different APIs, this change sanitize project name when parsing. The BranchUtil file is extracted from the ProjectUtil to avoid complex dependencies for the newly created project_util BUILD target. Bug: Google b/273188083 Forward-Compatible: checked Release-Notes: skip Change-Id: Ia203428244c48c7cb11b4785693c7c8795a3ff6b
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit && bazel build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update && apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 8 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-centos8
To run a Ubuntu 20.04 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-ubuntu20
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.