Thread (24 messages) flat view 24 messages, 8 authors, 2016-06-15

Re: git-daemon on NSLU2

From: Jon Smirl <hidden>
Date: 2016-06-15 22:43:31

On 8/26/07, Linus Torvalds [off-list ref] wrote:
quoted
Doesn't kernel.org use alternates or something equivalent for serving
up all those nearly identical kernel trees?
Absolutely. And that's the point. "git-daemon" will serve a nice
individualized pack, even though any particular repository doesn't have
one, but is really a combination of "the base Linus pack + extensions".
A really simple change to the git protocol would be to make the client
loop on the request. On the first request the server would see that
the client has no objects and send the "base Linus pack". The client
would then loop around and repeat the process which will trigger the
current pack building process.

Do pack files contain enough information about the heads of the object
chains for this to work? The client needs to be able to determine it's
state after receiving the pack and send the info back in the next
round.

I'm not buying the security argument. If you want something kept
hidden get it out of the public db. If I know the sha of the hidden
object can't I just add a head for it and git-deamon will happily send
it and the chain up to it to me?

-- 
Jon Smirl
jonsmirl@gmail.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help