commit | b4559f3cbdca6ad53195bf3b41643279fbb9ebb4 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Wed Feb 08 11:09:58 2017 +0100 |
committer | Edwin Kempin <ekempin@google.com> | Thu Feb 09 08:21:29 2017 +0100 |
tree | b061f933f25707a6a5aa1fcca16548a404209acb | |
parent | 49da974f80829e64670d550de767864ab6615744 [diff] |
Preferences: Fix overwriting configured default with original default If a user didn't set a value for a preference then the hard-coded default value is used, unless another default value is configured in the refs/users/default branch in All-Users. If a default value was configured in refs/users/default then overwriting this configured default with the original hard-coded default didn't work. Only overwriting it with any other value worked. This didn't work and the effective user setting was 80: * hard-coded default: 100 * refs/users/default: 80 * user setting: 100 This worked: * hard-coded default: 100 * refs/users/default: 80 * user setting: 101 (and any value other than 100) This is the reason why setting lineLength ("Columns") in the diff preferences on gerrit-review to 100 is not working, as in the refs/users/default branch we have configured a default lineLength of 80 and 100 is the hard-coded default value. Please note that setting lineLength to 100 works transiently until the page is reloaded because the client stores the updated diff preferences locally. Change-Id: I5f63f9d62f639c755b39d753d8b0b30832c8c9f6 Signed-off-by: Edwin Kempin <ekempin@google.com>
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 IRC channel on freenode is #gerrit. An archive is available at: echelog.com.
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 --recursive 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 7 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-centos7[:version]
To run a Ubuntu 15.04 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-ubuntu15.04[:version]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.