Closed GoogleCodeExporter closed 9 years ago
It is a side effect of wiping the database without also wiping the
refs/changes/* references in the Git repository. What happens is:
1) Gerrit consults the database, decides that change ID 1 (or whatever) is
available because it does not exist in the database.
2) When it tries to create refs/changes/01/01/1, Gerrit finds that it exists in
Git, and refuses to overwrite it.
3) When the change set is reviewed and merged, Gerrit looks it up, but finds
that refs/changes/01/01/1 points to a different commit than it expects, and
fails with the error you see.
When I saw the same problem, I solved it by manually deleting every
ref/changes/* ref from the Git repository on the server. Some of these were
under the "refs" directory, I think some were in info/refs, and I think some
were in packed-refs.
Original comment by mdpo...@troilus.org
on 14 Dec 2010 at 3:37
Original comment by sop@google.com
on 20 Jun 2011 at 3:02
Original issue reported on code.google.com by
naut...@gmail.com
on 4 Nov 2010 at 8:32