Files
gerrit/Documentation
Bruce Zu cd6572d435 Prevent duplicate commits in same project when uploading to refs/changes/n
Under certain circumstances, when pushing to 'refs/changes/n', the same
commit can be pushed onto multiple changes even if they are on the same
branch.

As a result of this, if the commit sha1 is used as change identifier
in the 'review' ssh command, it will fail with the error:

  'fatal: <SHA1> matches multiple patch sets.'

This commit performs the same check as when pushing to 'refs/for/branch'
to prevent this, and will show "commit already exists (in the project)"
error message to reject uploading a commit to an existing change via
`refs/changes/n` if the commit was already successfully pushed to a change
in project scope.

Bug: issue 2374
Change-Id: I1c000b2cc3e155617cdc9c295a46ce2107ec47ca
2014-03-11 08:26:36 +00:00
..
2013-06-14 20:30:32 +02:00
2013-09-27 09:31:32 -07:00
2013-08-29 15:14:50 -07:00
2013-01-07 17:30:55 +09:00
2013-08-29 15:14:50 -07:00
2013-11-28 12:25:16 +09:00
2013-05-21 20:28:56 -07:00
2013-08-29 15:14:50 -07:00
2014-02-19 10:29:34 +01:00
2013-08-29 15:14:50 -07:00
2014-01-17 11:49:51 +09:00
2013-09-18 13:13:29 -07:00
2013-10-08 10:27:08 -07:00