Help with shallow cloning please #1146
Unanswered
prateekatam
asked this question in
Q&A
Replies: 1 comment
-
@prateekatam by default go-git will download all tags, and so will their objects. In order to avoid that, you need to add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I'm trying to shallow clone a repository using
Depth: 1
in the clone options of PlainCloneContext.However, I observed that, it's not really shallow cloning. When I clone in terminal with
--depth=1
, it enumerates 32 objects whereas in go-gitPlainCloneContext
with Depth 1, it enumerates 256172 objects.Any help on how to simply shallow clone a repository? I'm looking for depth 1 clone of all branches.
TIA
Beta Was this translation helpful? Give feedback.
All reactions