-
- Downloads
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
Showing
- GITALY_SERVER_VERSION 1 addition, 1 deletionGITALY_SERVER_VERSION
- Gemfile 1 addition, 1 deletionGemfile
- Gemfile.lock 2 additions, 2 deletionsGemfile.lock
- changelogs/unreleased/zj-remote-repo-exists.yml 5 additions, 0 deletionschangelogs/unreleased/zj-remote-repo-exists.yml
- lib/gitlab/gitaly_client.rb 4 additions, 0 deletionslib/gitlab/gitaly_client.rb
- lib/gitlab/gitaly_client/remote_service.rb 11 additions, 0 deletionslib/gitlab/gitaly_client/remote_service.rb
- lib/gitlab/github_import/importer/repository_importer.rb 6 additions, 2 deletionslib/gitlab/github_import/importer/repository_importer.rb
- spec/lib/gitlab/gitaly_client/remote_service_spec.rb 10 additions, 0 deletionsspec/lib/gitlab/gitaly_client/remote_service_spec.rb
- spec/lib/gitlab/github_import/importer/repository_importer_spec.rb 5 additions, 1 deletion...gitlab/github_import/importer/repository_importer_spec.rb
Loading
| Loading
| @@ -420,7 +420,7 @@ group :ed25519 do |
end | ||
# Gitaly GRPC client | ||
gem 'gitaly-proto', '~> 0.88.0', require: 'gitaly' | ||
gem 'gitaly-proto', '~> 0.91.0', require: 'gitaly' | ||
gem 'grpc', '~> 1.10.0' | ||
# Locked until https://github.com/google/protobuf/issues/4210 is closed | ||
Loading
| Loading
|
Please register or sign in to comment