Re: Branch deletion (Re: [RFC] fast-import: note deletion command)
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Sep 18, 2011, 21:55 UTC
- Message-ID
- <CAGdFq_gCVBi1JOsyM=+SVU6HFew_7yaJWaZ-3=AnmDeRkBxntQ@mail.gmail.com>
- In-Reply-To
- <20110918214954.GL2308@elie>
Heya,
On Sun, Sep 18, 2011 at 23:49, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 9 quoted lines
> 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