Heya, On Sun, Sep 18, 2011 at 23:49, Jonathan Nieder <jrnieder@xxxxxxxxx> wrote: > By the way, what does the "export" command do in the following > situation? > > git push origin something-big:master > > Does it assume the remote-tracking branch for master reflects what's > available on the other end and send a stream for > origin/master..something-big, or does it send the entire history of > something-big? We have a test case for this actually. It goes like this: checking known breakage: (cd clone && git push origin new-name:new-refspec ) && compare_refs clone HEAD server refs/heads/new-refspec Everything up-to-date fatal: Needed a single revision not ok 16 - push new branch with old:new refspec # TODO known breakage In other words, we don't handle it at all. What we do handle a case similar to what you say, where we have already pushed part of the history of some-branch, and in that case we do indeed only push the needed objects. -- Cheers, Sverre Rabbelier -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html