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

Shallow clones (git clone --depth) are broken?

From: Jim Ramsay <hidden>
Date: 2016-06-15 22:46:14

I've been trying to experiment with shallow clones, however I can't
seem to actually create one.  Here's what I've tried, for example:

git clone --depth 1 git://git.fluxbox.org/fluxbox.git

However, this gets me everything, and takes quite a while.  After it
completes, running gitk shows me the entire history, and the size of
the .git directory is the same as a full clone I've done previously.

I've tried this with both 1.6.0.2 and 1.6.1.3, to the same effect.

Can anyone out there verify that this --depth option actually does
anything?  Or could it potentially be the version of git on the
server?

If it's not just something odd I'm doing, I can take the time to
try to figure out in which version this *does* work, and when it
stopped... Though others out there may be more equipped than I to chase
this down.

-- 
Jim Ramsay
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help