git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is it possible to git clone --filter= without any objects?
@ 2018-09-11  7:29 Ciro Santilli
  2018-09-11 17:15 ` Stefan Beller
  0 siblings, 1 reply; 6+ messages in thread
From: Ciro Santilli @ 2018-09-11  7:29 UTC (permalink / raw)
  To: git

At v2.19.0 I was trying to clone a fetch just a single directory:
https://stackoverflow.com/questions/600079/how-do-i-clone-a-subdirectory-only-of-a-git-repository/52269934#52269934

I got really close with:

git clone --depth 1 --no-checkout --filter=blob:none \
  "file://$(pwd)/server_repo" local_repo
cd local_repo
git checkout master -- mydir/

The only missing thing is that uneeded tree objects are still being fetched.

If I had a:

git clone --filter=none

for example then that would be done.

Nothing major since those are small, but just looking for the perfect
command :-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-09-12  1:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-11  7:29 Is it possible to git clone --filter= without any objects? Ciro Santilli
2018-09-11 17:15 ` Stefan Beller
2018-09-11 17:19   ` Jonathan Tan
2018-09-11 17:46     ` Junio C Hamano
2018-09-11 18:29       ` Ciro Santilli
2018-09-12  1:12         ` Matthew DeVore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).