Topic on Talk:Gerrit/Advanced usage/Archive 2

How to fix [OUTDATED] dependency on a patch

1
Phoenix303 (talkcontribs)

I am working on a patch that depends on another that's still under review.

  1. Patch A: parent patch still under review.
  2. 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:

  1. Checked out patch A (git review -d 'patchA')
  2. Checked out existing patch B (git review -d 'patchB')
  3. git rebase review/user/patchA
  4. makes changes to a file
  5. git add 'files'
  6. git rebase --continue shows 'No rebase in progress?'
  7. git commit --amend
  8. 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?

Reply to "How to fix [OUTDATED] dependency on a patch"