Test if remote repository exists before cloning
When a repository does not exist on a remote, Gitaly won't be able to clone it. This is correct behaviour, but from the clients perspective a change in behaviour. This change implements the client side changes that allows Gitaly to execute a `git ls-remote <remote-url> HEAD`. This way the client has no need to shell out to Git. In the situation where multiple Gitalies are available, one is chosen at random. This commit closes https://gitlab.com/gitlab-org/gitlab-ce/issues/43929, while its also a part of https://gitlab.com/gitlab-org/gitaly/issues/1084
显示
- GITALY_SERVER_VERSION 1 个添加, 1 个删除GITALY_SERVER_VERSION
- Gemfile 1 个添加, 1 个删除Gemfile
- Gemfile.lock 2 个添加, 2 个删除Gemfile.lock
- changelogs/unreleased/zj-remote-repo-exists.yml 5 个添加, 0 个删除changelogs/unreleased/zj-remote-repo-exists.yml
- lib/gitlab/gitaly_client.rb 4 个添加, 0 个删除lib/gitlab/gitaly_client.rb
- lib/gitlab/gitaly_client/remote_service.rb 11 个添加, 0 个删除lib/gitlab/gitaly_client/remote_service.rb
- lib/gitlab/github_import/importer/repository_importer.rb 6 个添加, 2 个删除lib/gitlab/github_import/importer/repository_importer.rb
- spec/lib/gitlab/gitaly_client/remote_service_spec.rb 10 个添加, 0 个删除spec/lib/gitlab/gitaly_client/remote_service_spec.rb
- spec/lib/gitlab/github_import/importer/repository_importer_spec.rb 5 个添加, 1 个删除...gitlab/github_import/importer/repository_importer_spec.rb
加载中
想要评论请 注册 或 登录