blob: 2103543d893ef3b6e2289013284b7bf6229d7c94 [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= no new changes
Edwin Kempin497ac4a2010-12-28 12:55:22 +01002
3With this error message Gerrit rejects to push a commit if the pushed
Bruce Zucd6572d2014-01-21 11:11:42 +08004commit was already successfully pushed to Gerrit in project scope.
5In this case there is no new change and consequently there is nothing
6for Gerrit to do.
Edwin Kempin497ac4a2010-12-28 12:55:22 +01007
8If your push is failing with this error message, you normally
9don't have to do anything since the commit was already successfully
10pushed. Still this error message may sometimes come as a surprise if
11you expected a new commit to be pushed. In this case you should
12verify that:
Edwin Kempinddfc41a2011-05-06 10:32:05 +020013
14. your changes were successfully committed locally (otherwise there
15 is no new commit which can be pushed)
16. you are pushing the correct commit (e.g. if you are pushing HEAD
17 make sure you have locally checked out the correct branch)
Edwin Kempin497ac4a2010-12-28 12:55:22 +010018
19If you are sure you are pushing the correct commit and you are still
20getting the "no new changes" error unexpectedly you can take the
21commit ID and search for the corresponding change in Gerrit. To do
22this simply paste the commit ID in the Gerrit WebUI into the search
23field. Details about how to search in Gerrit are explained link:user-search.html[here].
24
25Please note that each commit can really be pushed only once. This
26means:
Edwin Kempinddfc41a2011-05-06 10:32:05 +020027
28. you cannot push a commit again even if the change for which the
29 commit was pushed before was abandoned (but you may restore the
30 abandoned change)
31. you cannot reset a change to an old patch set by pushing the old
32 commit for this change again
33. if a commit was pushed to one branch you cannot push this commit
Bruce Zucd6572d2014-01-21 11:11:42 +080034 to another branch in project scope.
Edwin Kempinddfc41a2011-05-06 10:32:05 +020035. if a commit was pushed directly to a branch (without going through
36 code review) you cannot push this commit once again for code
37 review (please note that in this case searching by the commit ID
38 in the Gerrit WebUI will not find any change)
Edwin Kempin497ac4a2010-12-28 12:55:22 +010039
40If you need to re-push a commit you may rewrite this commit by
41link:http://www.kernel.org/pub/software/scm/git/docs/git-commit.html[amending] it or doing an interactive link:http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html[git rebase]. By rewriting the
Bruce Zucd6572d2014-01-21 11:11:42 +080042commit you actually create a new commit (with a new commit ID in
43project scope) which can then be pushed to Gerrit. If the old commit
44contains a Change-Id in the commit message you also need to replace
45it with a new Change-Id (case 1. and 3. above), otherwise the push
46will fail with another error message.
Edwin Kempin497ac4a2010-12-28 12:55:22 +010047
48
49GERRIT
50------
51Part of link:error-messages.html[Gerrit Error Messages]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070052
53SEARCHBOX
54---------