Reputation: 7600
In a project managed by Gerrit I have several reviews that really should be one review. The developer forgot to amend his commits. Do I fix this using git to squash the commits into one commit git rebase --interactive HEAD~7
or can I do it through the Gerrit web interface?
Will Gerrit notice the changes are in twice and abandon the older erroneous reviews?
Upvotes: 3
Views: 3685
Reputation: 311498
Gerrit currently doesn't have a fancy web-UI way of solving this. Just squash all the commits in one commit and push it again.
The commit with that change-id will be updated, and you should abandon all the other commits which should no longer exist (i.e., the ones you squashed into the pushed commit).
Upvotes: 3