[Insight-developers] Gerrit fix patch
Matthew McCormick (thewtex)
matt at mmmccormick.com
Thu Oct 7 23:56:36 EDT 2010
Hi Hans,
On Thu, Oct 7, 2010 at 10:23 PM, Hans Johnson <hans-johnson at uiowa.edu>wrote:
> After uploading to gerrit, I can not figure out how to change a patch
> set.
>
> I’ve tried following the sugestions on *
> http://vtk.org/Wiki/ITK/Gerrit/Primer#Making_Changes_in_Uploaded_Patches
> *But I always end up with errors.
>
> % git push gerrit
> b0040d1a4ddb80d80a0082e425c50790b0785b03:refs/changes/I994b3e05c0e76094801b8109431a5573a5134412
>
All the different numbers can get confusing. You want to push to the
'change number' instead of the Change Id. The change number is the last
number in the URL. Therefore, this should be something like
% git push gerrit b0040d1a4ddb80d80a0082e425c50790b0785b03:refs/changes/99
It gets easier if the gerrit hook is set up, and the Change Id is left at
the end of the commit message throughout all patch sets. Then the update is
just
% git push gerrit HEAD:refs/for/master
But, again, the Change Id must be at the end of the commit message.
Hope this helps,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101007/2919a9ac/attachment.htm>
More information about the Insight-developers
mailing list