Issue 648: git push of commit with abandoned change-id results in confusing error message
Status:  Accepted
Owner: ----
Reported by gthe...@google.com, Jul 30, 2010
Affected Version: 2.1.2.5

What steps will reproduce the problem?
1. push change into Gerrit for review using new change-id (X)
2. abandon change X using Gerrit web UI
3. re-push the change into Gerrit for review using same change-id (X)

What is the expected output?
I expect the git push to show an error indicating that the change-id has been abandoned and cannot be used.

What do you see instead?
git push does generate an error.  But the error message is vague.  Here is the error seen when trying to push with an abandoned change-id:

$ git push some_remote +commit_id:refs/for/some_branch
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 1.42 KiB, done.
Total 5 (delta 4), reused 0 (delta 0)
To ssh://server/some_branch
 ! [remote rejected] commit_id -> refs/for/some_branch (no new changes)
error: failed to push some refs to 'ssh://server/some_branch'

An alternative to a different error message would be for Gerrit to automatically un-abandon the previously abandoned change when receiving a push with the abandoned change-id.

Aug 2, 2010
#1 sop@google.com
(No comment was entered for this change.)
Status: Accepted
Jul 19, 2012
#3 phil.hord
I agree they all seem related, but I do not think they are truly dupes.