commit | 65edf0dc4d058c0e8273a86f6ef41ea5dc5546ba | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Fri Nov 25 13:19:45 2016 +0100 |
committer | Edwin Kempin <ekempin@google.com> | Fri Nov 25 13:19:45 2016 +0100 |
tree | 57f194835fbc0517914840570725f5a69e641362 | |
parent | 9ebeefa9fef63cb555db6b1eda6019f1d7f63fb4 [diff] |
Only show the 'Edit Config' button if refs/meta/config is visible We already show the 'Edit Config' button on the project screen only for project owners, however it seems to be possible to setup access rights in such a way that project owners can't see the refs/meta/config branch. In this case the user can't see changes for the refs/meta/config branch and the behaviour of the 'Edit Config' button is confusing. It lets the user click on 'Edit Config' which creates a change for refs/meta/config but the change is not visible to the user due to missing read permissions for refs/meta/config. Fix this by showing the 'Edit config' button only for project owners that can see the refs/meta/config branch. Change-Id: Id52ec9a40443cae3b2609001c6317d54f0ff05b8 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 Buck and run the following:
git clone --recursive https://gerrit.googlesource.com/gerrit cd gerrit && buck 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.