The depth command may not be doing what you expected, rather it's doing what
a moment's thought may indicate.

It is going back along ALL the branches that depth count, so all it takes is
for one branch to have been a bit stale and link back to somewher deep in
history and there you have it, a mega tree being downloaded.

At least that's my simplistic view of the depth issue (it can go the other
way when someone has advanced a branch father than the requested depth and
then when you request an update you get a gap because you haven't fully
spanned their work).

Have a look to se if there is a --since option in you version. I think it
got implemented.

If you are local to the repo, also try the bundle command which does allow
since, and avoids the e-transport overhead in favour of 'sneakernet' ;-)

----- Original Message ----- From: "Redoubts Redoubts" <redou...@gmail.com>
To: "Git for human beings" <git-users@googlegroups.com>
Sent: Friday, March 30, 2018 6:05 PM
Subject: [git-users] Shallow clone not shallow enough


I'm trying to get a handle on a large repo (years old, 20k commits, >1GB),
and I'm noticing weird behavior when I take shallow clones above a certain
depth.

When I do `git clone --mirror --depth 10` or so, I get the expected
behavior of a nice shallow copy. When I try a depth of around 40, I
noticed
it cloned 100 commits instead, and the disk-size approached half the size
of the full repo. I know for certain there wasn't much large-file churn
around the time, so this result is surprising. I was hoping for a more
compact copy of 2 weeks of history. Is there a better way to achieve this?

--
You received this message because you are subscribed to the Google Groups
"Git for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Git for 
human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to