<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I was in the thread_mpi branch, but don't worry - I've moved my patches and pushed from a clean tree :-)</div><div><br></div><div>Thanks anyway!</div><div><br></div><div>Cheers,</div><div><br></div><div>Erik</div><div><br><div><div>On Jul 5, 2009, at 8:54 PM, Roland Schulz wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">One more thing:<br><br>In what branch are you locally? Could it be that you are neither in master nor in thread_mpi?<br><br>If you say "git pull" it executes git fetch (which gets everything) and git merge (which merges the local branch). <br> <br>So if you have changed something in master but are currently in {some-other-branch} then master is not being merged. Push tries to push all branches and would then complain that master is not up-to date.<br><br>You could fix this by:<br> git checkout master<br>git merge origin/master<br>optional: git rebase origin/master<br><br>(the same for thread-mpi)<br><br>but even if it complains that master and thread-mpi is not pushed. It did push {some-other-branch} if you updated that.<br> <br><br><div class="gmail_quote">On Sun, Jul 5, 2009 at 2:46 PM, Roland Schulz <span dir="ltr">&lt;<a href="mailto:roland@utk.edu">roland@utk.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br><br><div class="gmail_quote"><div class="im">On Sun, Jul 5, 2009 at 2:25 PM, Erik Lindahl <span dir="ltr">&lt;<a href="mailto:lindahl@cbr.su.se" target="_blank">lindahl@cbr.su.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div style="word-wrap: break-word;"><br><div><div><div>On Jul 5, 2009, at 7:25 PM, Roland Schulz wrote:</div><br></div><blockquote type="cite">Hi,<br><br>did you pull before?<br></blockquote><div><br></div>Erm, yes... I'm still used to cvs where that was good manner :-)</div> </div></blockquote></div><div><br>Something is not in sync with your local database because even the thread_mpi complains. <br>The pull gives no error?&nbsp; origin/master and master is in sync? You can see that by looking at:<br> git diff {ref before your commit} origin/master ( commit has to be at the tip - see below )<br> git status<br><br>You can make sure you have all in origin/master merged by<br>git merge origin/master<br><br>You can try to move your commit to the tip (anyhow good because it removes these merge messages):<br>git rebase origin/master<br> <br>I don't think it is related with my rebase. That should only affect pull/merge (if you pulled between the my two pushs). But not push.<br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div style="word-wrap: break-word;"><div></div><div><br></div><div>Don't worry, it's not a huge commit, so I'll port it manually.&nbsp;</div><div><br></div><div>BTW, is the conclusion that we should avoid rebasing?</div> </div></blockquote></div><div><br>No. Rebasing in your local database works great. Exspecially rebasing on the origin/master (see above) is in my opinion even cleaner than just merge. But even changing prior commits:<br> rebase -i (to squash and to edit)<br> rebase --onto {good-ref} {broken-ref} (to delete commits)<br><br>works great. <br>But doing that on already pushed commits is a bad idea.<br><br>So if one has done a mistake and already pushed than one can either:<br>- correct the mistake and commit the fix<br> - use git revert<br><font color="#888888"><br>Roland<br></font></div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div style="word-wrap: break-word;"><div></div><div> <br></div><div><br></div><div>Cheers,</div><div><br></div><font color="#888888"><div>Erik</div></font><div><div></div><div><div><br></div><div><br></div><div><br><blockquote type="cite">Roland<br><br><div class="gmail_quote"> On Sun, Jul 5, 2009 at 12:03 PM, Erik Lindahl <span dir="ltr">&lt;<a href="mailto:lindahl@cbr.su.se" target="_blank">lindahl@cbr.su.se</a>&gt;</span> wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div style="word-wrap: break-word;">Hi Roland,<div><br></div><div>When&nbsp;I&nbsp;try&nbsp;to&nbsp;push&nbsp;I'm getting errors like:</div> <div><br></div><div><div>To <a href="mailto:git@git.gromacs.org" target="_blank">git@git.gromacs.org</a>:gromacs.git</div> <div>&nbsp;! [rejected] &nbsp; &nbsp; &nbsp; &nbsp;master -&gt; master (non-fast forward)</div><div>&nbsp;! [rejected] &nbsp; &nbsp; &nbsp; &nbsp;thread_mpi -&gt; thread_mpi (non-fast forward)</div> <div>error: failed to push some refs to <a href="mailto:%27git@git.gromacs.org" target="_blank">'git@git.gromacs.org</a>:gromacs.git'</div> <div><br></div><div><br></div><div>Any clue if it could be related?</div> <div> <br></div><div>Cheers,</div><div><br></div><div>Erik</div><div><br></div><div><br></div><div><div><div></div><div><div>On Jul 5, 2009, at 12:23 PM, Roland Schulz wrote:</div> <br></div></div><blockquote type="cite"> <div><div></div><div>Hi,<br><br>if you haven't pulled from origin/master since yesterday 9:54, you won't be affected by a merge problem.<br><br>If you have. Sorry: I used rebase -i to change two commits and then pushed them. I didn't know that that's a bad idea since it messes up pull/merge.<br>   <br>If you working directory is clean and you have no local commits you can just do:<br>git reset --hard f91e36a361ffeed4ccdad1ba4520373aa1615c8d<br>git pull<br><br>Otherwise you can merge by hand. It's just one line. The new version is correct.<br>   <br>Roland<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername"></b> <span dir="ltr">&lt;<a href="mailto:gmx-commit@gromacs.org" target="_blank">gmx-commit@gromacs.org</a>&gt;</span><br>   Date: Sun, Jul 5, 2009 at 6:03 AM<br>Subject: [gmx-commit] Gromacs source branch, master, updated. f51570ab8b9e746818566defff8755c56e5f2c2c<br>To: <a href="mailto:gmx-commit@gromacs.org" target="_blank">gmx-commit@gromacs.org</a><br>  <br> <br>This is an automated email from the git hooks/post-receive script. It was<br> generated because a ref change was pushed to the repository containing<br> the project "Gromacs source".<br> <br> The branch, master has been updated<br>   &nbsp;discards &nbsp;9430a4adcc64b1fa870dc8fa7a9d838f67c81beb (commit)<br> &nbsp;discards &nbsp;b404599ddd478ef3b42d0febd2bdf4a01f786e01 (commit)<br> &nbsp; &nbsp; &nbsp; via &nbsp;f51570ab8b9e746818566defff8755c56e5f2c2c (commit)<br> &nbsp; &nbsp; &nbsp; via &nbsp;b6c4bb3b6673d2255bd4f0c8cb3837e24ac9650d (commit)<br>   <br> This update added new revisions after undoing existing revisions. &nbsp;That is<br> to say, the old revision is not a strict subset of the new revision. &nbsp;This<br> situation occurs when you --force push a change and generate a repository<br>   containing something like this:<br> <br> &nbsp;* -- * -- B -- O -- O -- O (9430a4adcc64b1fa870dc8fa7a9d838f67c81beb)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; N -- N -- N (f51570ab8b9e746818566defff8755c56e5f2c2c)<br> <br> When this happens we assume that you've already had alert emails for all<br>   of the O revisions, and so we here report only the revisions in the N<br> branch from the common base, B.<br> <br> Those revisions listed above that are new to this repository have<br> not appeared on any other notification email; so we list those<br>   revisions in full, below.<br> <br> - Log -----------------------------------------------------------------<br> commit f51570ab8b9e746818566defff8755c56e5f2c2c<br> Author: Roland Schulz &lt;<a href="mailto:rschulz@linux-ftso.site" target="_blank">rschulz@linux-ftso.site</a>&gt;<br>   Date: &nbsp; Sat Jul 4 15:40:01 2009 -0400<br> <br> &nbsp; &nbsp;deactive by default "fexist only on master"<br> <br> commit b6c4bb3b6673d2255bd4f0c8cb3837e24ac9650d<br> Author: Roland Schulz &lt;<a href="mailto:rschulz@linux-ftso.site" target="_blank">rschulz@linux-ftso.site</a>&gt;<br>   Date: &nbsp; Thu Jun 25 12:22:12 2009 -0400<br> <br> &nbsp; &nbsp;added possiblility to deactivate fexist calls on non-master nodes<br> <br> -----------------------------------------------------------------------<br> <br> Summary of changes:<br>   &nbsp;src/kernel/md.c | &nbsp; &nbsp;2 +-<br> &nbsp;1 files changed, 1 insertions(+), 1 deletions(-)<br> <br> <br> hooks/post-receive<br> <font color="#888888">--<br> Gromacs source<br> _______________________________________________<br> gmx-commit mailing list<br>   <a href="mailto:gmx-commit@gromacs.org" target="_blank">gmx-commit@gromacs.org</a><br> <a href="http://lists.gromacs.org/mailman/listinfo/gmx-commit" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-commit</a><br>   </font></div><br><br clear="all"><br>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a><br>865-241-1537, ORNL PO BOX 2008 MS6309<br></div></div> _______________________________________________<br>  gmx-developers mailing list<br><a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a><br><a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>  Please don't post (un)subscribe requests to the list. Use the <br>www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.</blockquote></div>  <br></div></div><br>_______________________________________________<br> gmx-developers mailing list<br> <a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a><br> <a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>  Please don't post (un)subscribe requests to the list. Use the<br> www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.<br></blockquote> </div><br><br clear="all"><br>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a><br> 865-241-1537, ORNL PO BOX 2008 MS6309<br> _______________________________________________<br> gmx-developers mailing list<br><a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a><br><a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br> Please don't post (un)subscribe requests to the list. Use the <br>www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.</blockquote></div> <br></div></div></div><br>_______________________________________________<br> gmx-developers mailing list<br> <a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a><br> <a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br> Please don't post (un)subscribe requests to the list. Use the<br> www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.<br></blockquote></div></div></div><div><div></div><div class="h5"><br><br clear="all"> <br>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a><br> 865-241-1537, ORNL PO BOX 2008 MS6309<br> </div></div></blockquote></div><br><br clear="all"><br>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov">cmb.ornl.gov</a><br>865-241-1537, ORNL PO BOX 2008 MS6309<br> _______________________________________________<br>gmx-developers mailing list<br><a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>http://lists.gromacs.org/mailman/listinfo/gmx-developers<br>Please don't post (un)subscribe requests to the list. Use the <br>www interface or send it to gmx-developers-request@gromacs.org.</blockquote></div><br></div></body></html>