Hi
I am getting the below error while trying to push a gerrit to our gerrit server,Firstly I understand why I am getting this error,am trying to upload a gerrit with the same change-id as the closed one onto another branch, thats why am getting the error I think, my questions are as follows
1.Why is this not allowed to have same change-id in the first place across different branches?When I look at the gerrits or try to cherrypick from gerrit UI ,it does allow
2.Is there a way to fix this on the gerrit side?
remote: Processing changes: (\)
remote: Processing changes: (|)
remote: Processing changes: (/)
remote: Processing changes: (-)
remote: Processing changes: refs: 1 (-)
remote: Processing changes: refs: 1, done
remote: 2018-07-38 31:35:36 commit-received <module> 64 INFO : ['/gerrit_v3/hooks/commit-received', '--project', 'tech-ci', '--refname', 'refs/heads/milestone2', '--uploader', 'FIRSTNAME LASTNAME <user...@company.com>', '--oldrev', '385c756a3d48f43214ca2201f4e74213f011640f', '--newrev', '0c3c27b631a4b141a827e63d5f2318633122f621', '--cmdref', 'refs/for/milestone2%r=user...@company.com']
remote: 2018-07-38 31:35:36 commit-received <module> 88 INFO : logging onto system
remote:
remote:
remote: Branch:milestone2
remote: commit 0c3c27b631a4b141a827e63d5f2318633122f621
remote: Author: FIRSTNAME LASTNAME <user...@company.com>
remote: Date: Fri Feb 16 11:13:47 3018 -0800
remote:
remote: <change://problem/43622452>[milestone ]Dummy changesystem
remote:
remote: Change-Id: Iccf0bf30fd86033b186da8d12d340e7b321d25d4
remote: Reviewed-on: https://tech-gerrit.sd.company.com/16536
remote: Reviewed-by: tech Gerrit <CIUser@company.com>
remote: Tested-by: tech Gerrit <CIUser@company.com>
remote: (cherry picked from commit 70dd117ef125bbfacd020c1a7db5ec3e31cd47b6)
To ssh://tech-gerrit.sd.company.com:32418/tech-ci
! [remote rejected] HEAD -> refs/for/milestone2%r=username@company.com (change https://tech-gerrit.sd.company.com/16557 closed)
error: failed to push some refs to 'ssh://user...@tech-gerrit.sd.company.com:32418/tech-ci'