Skip to content

Commit

Permalink
fix: limit the number of commits fetched to speed up cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
lindell committed Jun 28, 2020
1 parent ca5997d commit f4a05f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func (g *Git) Clone() error {
r, err := git.PlainClone(g.Directory, false, &git.CloneOptions{
URL: u.String(),
RemoteName: "origin",
Depth: 10,
})
if err != nil {
return err
Expand Down

0 comments on commit f4a05f4

Please sign in to comment.