Ticket #667 (closed enhancement: fixed)
Git: Initial clone should use "--depth 1" option
|Reported by:||tfogal||Owned by:|
The git repositories that buildbot needs could be considered "leaf" repositories. That is, one doesn't expect that the repository buildbot checks out would be used as an upstream for anybody else. As such, in the common case, buildbot only needs "the latest" revision in the repository.
To reduce disk load and processing time, but mostly network bandwidth, it would be nice if buildbot only grabbed a "shallow" clone. Such clones are not useful for browsing history, but buildbot does not do that regularly.
This all breaks down if the user requests a specific revision. Presumably, we could fetch only that revision and later, but the effort involved in figuring that out seems difficult.