Jonathan Nieder <jrnieder@xxxxxxxxx> wrote: > Eric Wong wrote: > > Konstantin Ryabitsev <konstantin@xxxxxxxxxxxxxxxxxxx> wrote: > > >> This is actually really fast if you already have a local copy of the > >> repository with most objects. Try this yourself if you have > >> torvalds/linux.git locally: > >> > >> git clone --bare -s torvalds/linux.git test > > > > Yep, -s (--shared) makes cloning really cheap. One of my goals is to get > > > > git clone -s https://example.com/torvalds/linux.git > > > > and > > > > git clone -s https://example.com/torvalds/linux.git/clone.bundle > > > > working. That would make it easier for new contributors to > > setup lightweight clones and pull in history on an as-needed > > basis w/o hacks like shallow cloning. > > Does "git clone --filter=blob:none" do what you're looking for? Oops, haven't seen that new feature :x And haven't tried, pu @ 8d9027fa59b943db96a8a9090ec31d7f0f935596 is broken due to conflicts with hashmap (probably won't have time for a bit to look at it). What I'm hoping to do with "git clone -s" would be client-only and compatible with existing HTTP servers that run "git update-server-info".