capistrano-withrsync icon indicating copy to clipboard operation
capistrano-withrsync copied to clipboard

Initial `clone` takes very long on big repositories

Open eiapopeia opened this issue 6 years ago • 0 comments

The current workflow is basically as follows:

  • clone repository
  • checkout branch

Having a big repo with some binaries and a lot of commits the first step takes a very long time for every developer (around 10 Minutes).

In fact we need only the code at an specific revision and not the whole repository with all its history.

Therefore we should use shallow clone with the depth of one to get the source code to the temp folder.

I am aware the the subsequent deploys might under some circumstances be a little bit slower (shallow clone instead of fetch, pull and checkout). But this should all in all be bearable.

eiapopeia avatar May 20 '19 15:05 eiapopeia