[Insight-developers] Error when push second changes to gerrit

Bill Lorensen bill.lorensen at gmail.com
Sun Nov 21 09:15:48 EST 2010


Wanlin,

Make sure that the change-id is the last line in the commit.

Bill

On Sun, Nov 21, 2010 at 6:22 AM, wanlin <wanlinzhu at gmail.com> wrote:
> When making changes in uploaded changes, i input
> git rebase -i HEAD~2
>
> Two commits appear in the editor, i changed the second as edit
>
> pick 18193dd Remove bug in
> NeighborhoodAlgorithm::ImageBoundaryFacesCalculator
> e 6bfb20c Remove bug in NeighborhoodAlgorithm::ImageBoundaryFacesCalculator
>
> then ensure the second commit has the same change-ID with the first one. but
> when i push them
>
> git push gerrit HEAD:refs/for/master/NeighborhoodAlgorithm
>
> It prompted the following error:
>
>  ! [remote rejected] HEAD -> refs/for/master/NeighborhoodAlgorithm (squash
> commits first)
> error: failed to push some refs to 'wanlin at review.source.kitware.com:ITK'
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
>


More information about the Insight-developers mailing list