Alex
Alex

Reputation: 35008

GitLab clone initialization slow

We have a ~ 150 MB repository on the local network on gitlab.

When cloning this one, it takes a long time before any downloading starts

Command:

git clone http://foobar.local/gitlab/foobar repo_deploy
Cloning into 'repo_deploy'...

Nothing is happening now for around five minutes.

remote: Counting objects: 35192, done.
remote: Compressing objects: 100% (13552/13552), done.
remote: Total 35192 (delta 16644), reused 34647 (delta 16241)
Receiving objects: 100% (35192/35192), 125.49 MiB | 23.21 MiB/s, done.
Resolving deltas: 100% (16644/16644), done.

What is happening during this time? How can we speed this up?

Upvotes: 1

Views: 2699

Answers (1)

PiTheNumber
PiTheNumber

Reputation: 23542

Try cleanup you remote repository git gc

Documentation https://www.kernel.org/pub/software/scm/git/docs/git-gc.html

Source https://groups.google.com/forum/#!topic/repo-discuss/XxqjX-JPRFg

Upvotes: 1

Related Questions