Skip to content

gitserver: Add RepoCloneProgress endpoint

Administrator requested to merge clone-progress into master

Created by: ryanslade

This is similar to /repos, but only returns clone progress and is much faster as it only needs to check the disk once. Responses are now almost instant.

The only aspect I'm not too happy about is client.RepoCloneProgress and client.RepoInfo are very similar. However, on balance, I think a little bit of duplication here is better than trying to create a more generic method as it's going to end up with a lot of type assertions and switches.

Closes: https://github.com/sourcegraph/sourcegraph/issues/8725

Merge request reports

Loading