[Insight-developers] Gerrit: Failed to push (no new changes)

Marcus D. Hanwell marcus.hanwell at kitware.com
Mon Oct 18 10:54:57 EDT 2010


On Mon, Oct 18, 2010 at 10:46 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Marcus,
>
> I created a topic branch, edited some files and removed some files. I
> committed my changes and pushed to gerrit.
>
> I noticed that my gerrit patch did not have the removed files. I guess
> I had forgotten to commit them.
>
> So, I abandoned that patch.
>
> Then I committed the removed files and renamed the branch and tried to
> push to gerrit.
>
> I get this error:
> $ git gerrit-push
> Counting objects: 9, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (5/5), done.
> Writing objects: 100% (5/5), 712 bytes, done.
> Total 5 (delta 4), reused 0 (delta 0)
> To lorensen at review.source.kitware.com:ITK
>  ! [remote rejected] HEAD ->
> refs/for/master/RemoveOrientedImageExamples2 (no new changes)
> error: failed to push some refs to 'lorensen at review.source.kitware.com:ITK'
>
> But there are new changes. The second try has the removed files committed.
>
> Help
>
What does,

git log --graph --stat origin/master..

show? Gerrit is saying that it cannot see anything that is not already
either in master or up for review. If you paste the output of that
command I can look into what might be causing this.

Thanks,

Marcus


More information about the Insight-developers mailing list