<div dir="ltr">Hi John, <div><br></div><div>The author is important thing to preserve so the easiest think for you todo is change the commiter to yourself. If the the commit is the last commit on your branch this should do it for you:</div>
<div><br></div><div>git commit --amend --author="Name Here <<a href="mailto:nwaldin@cscs.ch" style="font-size:12.800000190734863px;font-family:arial,sans-serif">nwaldin@cscs.ch</a>>"</div><div><br></div><div>
( replace Name Here with intern name )</div><div><br></div><div>You will then be the commiter so gerrit will be happy, but your intern will be the author.</div><div><br></div><div>Hope that helps, </div><div><br></div><div>
Chris</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 16, 2013 at 4:32 PM, Biddiscombe, John A. <span dir="ltr"><<a href="mailto:biddisco@cscs.ch" target="_blank">biddisco@cscs.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Apologies if two copies of this are sent. First one went wrong I think.<br>
<br>
An intern here at CSCS has created a topic branch for paraview and one for VTK upon which the paraview one depends. I tried to push the VTK branch to gerrit to start the code review process. He’s leaving after tomorrow, so I’ll be the one doing the majority of maintenance going forwards. Other than registering his email to me as appears a possibility in the text below, is there another way in which I can push his branch and take over ownership without losing his identity as the person who made the commit. Right now it’s one huge commit which is a very long tree of commits squashed into a single new feature.<br>
<br>
Tia<br>
<br>
JB<br>
<br>
$ git gerrit-push<br>
Fetching gerrit master<br>
Pushing to gerrit<br>
Counting objects: 97, done.<br>
Delta compression using up to 12 threads.<br>
Compressing objects: 100% (24/24), done.<br>
Writing objects: 100% (63/63), 71.94 KiB | 0 bytes/s, done.<br>
Total 63 (delta 46), reused 51 (delta 39)<br>
remote: Resolving deltas: 21% (10/46)<br>
remote:<br>
remote: ERROR: In commit 13a053fd4232f6ccfee322cf2cbc759dc652d5d3<br>
remote: ERROR: committer email address <a href="mailto:nwaldin@cscs.ch">nwaldin@cscs.ch</a><mailto:<a href="mailto:nwaldin@cscs.ch">nwaldin@cscs.ch</a>><br>
remote: ERROR: does not match your user account.<br>
remote: ERROR:<br>
remote: ERROR: The following addresses are currently registered:<br>
remote: ERROR: <a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a><mailto:<a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a>><br>
remote: ERROR:<br>
remote: ERROR: To register an email address, please visit:<br>
remote: ERROR: <a href="http://review.source.kitware.com/#/settings/contact" target="_blank">http://review.source.kitware.com/#/settings/contact</a><br>
remote:<br>
remote:<br>
error: failed to push some refs to '<a href="mailto:biddisco@review.source.kitware.com">biddisco@review.source.kitware.com</a><mailto:'<a href="mailto:biddisco@review.source.kitware.com">biddisco@review.source.kitware.com</a>>:VTK'<br>
To <a href="mailto:biddisco@review.source.kitware.com">biddisco@review.source.kitware.com</a><mailto:<a href="mailto:biddisco@review.source.kitware.com">biddisco@review.source.kitware.com</a>>:VTK<br>
! HEAD:refs/for/master/topic_new_transfer_function [remote rejected] (invalid committer)<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br></div>