! [remote rejected] HEAD -> refs/publish/master (change #### closed)

1,820 views
Skip to first unread message

Weigang Liu

unread,
Jul 3, 2017, 5:12:43 AM7/3/17
to Repo and Gerrit Discussion
Hi guys, 

I'm running in to this problem even though I did git commit --amend and deleted previous change id. How can I solve this problem? 


Matthias Sohn

unread,
Jul 3, 2017, 11:46:03 AM7/3/17
to Weigang Liu, Repo and Gerrit Discussion
On Fri, Jun 30, 2017 at 5:33 PM, Weigang Liu <weig...@gmail.com> wrote:
Hi guys, 

I'm running in to this problem even though I did git commit --amend and deleted previous change id. How can I solve this problem? 

this happens if a change with this change id has already been closed (submitted or abandoned).
Copy the change id of your local change into the search box of Gerrit's web UI and hit return
to check if this is the case.

If you really want to push your local change (if it's different from the one which has been closed on the server)
then amend your local change, remove the change id, and amend it again in order to generate a new change id.
Then you should be able to push it for review.

-Matthias

Martin Fick

unread,
Jul 5, 2017, 12:57:40 PM7/5/17
to repo-d...@googlegroups.com, Matthias Sohn, Weigang Liu
There is also the chance that you have unintentionally
amended a previous commit in your history, not the tip
change. If that commit is a closed change, Gerrit will
complain,

-Martin


--
The Qualcomm Innovation Center, Inc. is a member of Code
Aurora Forum, hosted by The Linux Foundation

Reply all
Reply to author
Forward
0 new messages