I am working on a patch that depends on another that's still under review.
- Patch A: parent patch still under review.
- Patch B: depends on A.
I have made new patchsets for A and on patch B's page, Gerrit shows that the dependency(patch A) is [OUTDATED].
Steps I have followed to fix this issue:
- Checked out patch A (git review -d 'patchA')
- Checked out existing patch B (git review -d 'patchB')
- git rebase review/user/patchA
- makes changes to a file
- git add 'files'
- git rebase --continue shows 'No rebase in progress?'
- git commit --amend
- git push gerrit HEAD:refs/for/master
git push throws error ' ! [remote rejected] HEAD -> refs/for/master (squash commits first)'.
How can I fix this?