Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gerrit: ! [remote rejected] HEAD -> refs/publish/master (no new changes)

Tags:

git

gerrit

I made some changes, committed them and pushed the branch to Gerrit (git push gerrit). Now my changes don't appear in Gerrit and I assume this is because I pushed the changes manually instead of using git review. When I run git review now, Im getting this error:

remote: Processing changes: refs: 1, done    
To ssh://user@gerrit-host:29418/Project
! [remote rejected] HEAD -> refs/publish/master (no new changes)
error: failed to push some refs to 'ssh://user@gerrit-host:29418/Project'

How can I tell Gerrit that my changeset needs to be reviewed?

like image 219
stackular Avatar asked May 22 '14 13:05

stackular


2 Answers

you can remove that commit from remote branch or you can do this

git commit --amend

this will create a new patch

git push gerrit HEAD:refs/for/your_branch
like image 199
aibotnet Avatar answered Sep 27 '22 23:09

aibotnet


I think the problem is that the commit already in remote branch. That is why no new changes on push. First try to remove the commit from remote branch, and then push the commit to review branch.

like image 23
laplasz Avatar answered Sep 28 '22 00:09

laplasz