capistrano-withrsync
capistrano-withrsync copied to clipboard
Initial `clone` takes very long on big repositories
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.