Can I add changed files to an already merged gerrit?

Viewed 406

I checkout a branch, say X from master branch, added my code and later pushed to gerrit. It got merged to the master branch.

My teammate was working on another change and when they submit their change, they found that my X branch code there was a test failure.
They cannot push the code to gerrit unless my tests are fixed which I checked in X branch.

How should I go ahead?
Can I still edit the X branch - amend commit - push to merged gerrit?
Or should I go ahead by creating a new branch and edit my test file there?

1 Answers

IF it is already merged/published, then adding/modifying files to a change would not apply.

It is easier to treat that as a new change to be pushed, reviewed and merged.

Related