[Insight-developers] Gerrit fix patch

Hans Johnson hans-johnson at uiowa.edu
Fri Oct 8 07:49:01 EDT 2010


Matthew,

THANK YOU!  I once the correct number was used, it seems to have worked!.

Hans



On 10/7/10 10:56 PM, "Matthew McCormick (thewtex)" <matt at mmmccormick.com>
wrote:

> 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/I994b3e05c0e76094801b81
>> 09431a5573a5134412
> 
> 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
> 

-- 
Hans J. Johnson, Ph.D.
Assistant Professor
200 Hawkins Drive
T205 BT, The University of Iowa
Iowa City, IA 52242

hans-johnson at uiowa.edu
PHONE: 319 353 8587

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101008/b313949d/attachment.htm>


More information about the Insight-developers mailing list