Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8274435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:43:49+00:00 2026-06-08T07:43:49+00:00

Is there a tool, that makes pull-requests and combined reviews fool-proof and safe in

  • 0

Is there a tool, that makes pull-requests and combined reviews fool-proof and safe in git?

I know that there are a couple of related questions, that have already been asked at github (See also: Using git for Code Reviews, Online Code Review Tool with Git Integration).

People have been suggesting the use of gerrit or gist.

Solutions presented in previous questions have nice interfaces, however they fail horribly when it comes to access control. Our company is too small to force a single person reviewing the code or to have dedicated maintainers. Therefore we are looking for a tool to ensure (or at least encourage) that code is reviewed before it gets pushed to our central repository.

Note: Absolute user access control is not necessary, because we generally trust our employees. However we want to prohibit a push directly to our central repository without restricting the privilege to push to a single person.

Thus the tool (or combination of tools and scripts) should achieve at least these tasks:

  • make pull requests visible in a web interface. (gerrit achieves that)
  • the central repository is linked to that tool, such that read-only access is possible, but pushing requires at least another person to review and acknowledge the changeset.
  • the person responsible for review and acknowledgement can be an arbitrary person from the development team.
  • the tool must autonomously detect (and refuse) pull requests that lead to merge conflicts.
  • it shouldn’t use git functions that are known to alter the SHA1 hash of the commit(s).

My proposal to this solution:

  • use gerrit for pull-requests and review handling.
  • gerrit should always have a clone of the master.
  • for every pull request gerrit checks whether the patches are applicable to master without conflicts (that would be a script hook, and I don’t know whether gerrit features them).
  • the central repository is owned by a privileged user with shell access (here named gerrit) and is exposed via http(s).
  • whenever another person reviews the code, there is an apply button in the web interface that will automatically push the changes to the central repository.

Unfortunately I don’t know gerrit and documentation is scarce. Is it possible to implement this workflow in gerrit? Is there perhaps another tool, that fulfils these requirements?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:43:52+00:00Added an answer on June 8, 2026 at 7:43 am

    Strictly, you don’t need to have gerrit push changes to another repository for hosting (although it has built-in hooks to allow pushing) because Gerrit can act as a repository host.

    It’s possible to restrict Gerrit to applying only patches which will fast-forward, rejecting those requiring merging. If you’ve got more than just a few people working on the project, this might slow you down though: the more people commit, the more likely it is that a patch will have to be rebased before being accepted.

    Applying patches isn’t quite a single-click operation: having reviewed the patch, the reviewer must first select a score (ranging from -2 to +2) with a +2 enabling the “Apply it now” button. If you don’t have a CI system verifying the patches, they may also need to indicate that they’ve verified the source works. If you do have a CI bot, and it’s not finished by the time the reviewer looks at the code, they can leave their feedback and anyone (subject to permissions) can trigger the merge when the CI bot is finished.

    Your requirement for an arbitrary team member is satisfiable, unless you mean “an arbitrary team member who is not the member who submitted the change”. I suspect that’s what you actually want, but you might have police this retroactively.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ve been told there is a tool that makes visual studio suggest variables,
Is there a tool or visual studio feature that makes it easy to look
Is there any tool that analyse and reports number of functions (including member functions)
Is there a tool that will let you search a number of different crystal
Is there any tool that can read a WSDL file and based on the
Is there a tool that can list the exact versions and public keys of
Is there a tool that will allow me to issue commands over the network
Is there some tool that can automatically convert the following c style code A
Is there a tool that analyses .NET code and finds race conditions? I have
Is there a tool that will convert MS Access SQL to T-SQL?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.