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

  • Home
  • SEARCH
  • 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 8959015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:21:01+00:00 2026-06-15T15:21:01+00:00

Two developers are working on the develop branch on two entirely different changes (say,

  • 0

Two developers are working on the develop branch on two entirely different changes (say, two different files). They both submit their work at the same time, triggering two Jenkins builds. Those builds go fine but one review takes longer than the other.

The first dev submits their patch set and there are no intermediate commits on develop so Gerrit merges it right in.

The second dev later submits their patch set. Though there’s an intermediate commit now, the merge itself is trivial and Gerrit performs the merge.

Now we have two builds, neither of which contains the work of the other.

I’d like to block the second submission if there are any intermediate commits, even if the merge would be totally trivial, causing the developer to instead rebase and update their submission (and trigger a new build in Jenkins in the process).

What do I set in Gerrit to block such trivial-but-unwanted merges when a review is complete, the patch set is being submitted but the target branch has intermediate merges on it?

  • 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-15T15:21:03+00:00Added an answer on June 15, 2026 at 3:21 pm

    You can change project options in Gerrit
    To fast-forward only,
    This would prevent the change from going in as it is not a fast forward merge.
    Then forcing developer2 to git pull –rebase and push again, now the change that developer1 did will be part of the verification.

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

Sidebar

Related Questions

here's the description of my everyday work: Two developers working in many small features
The company I used to work with has two developers working fulltime, and a
Assuming you have two developers working on a project locally on their laptops (A
We are using TortoiseHg with BitBucket. There are two developers working remotely on the
I am working on a project to process three files...two CSVs and one XML.
(Make this CW if needed) We are two developers working on a web application
I have now been working as a web developer for two weeks and have
I have a repositories, i want to have two views: Developers can see the
working with a team of more traditional developers we came across this situation: We
ext-Myself and two co-workers have been working on a GWT project and coding in

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.