Allow gitaly create_repository to take a default branch argument
Currently when rails wants to ensure a default branch name, it will call the Gitaly WriteRef RPC to manually change it. If this call happens in a racy way eg: it gets called when another RPC is operating on the same repository, it will fail. Rather than do this, the Gitaly CreateRepository RPC has a default_branch parameter. Allow rails callers to set this value. If it is not provided, then the default branch in Gitaly will be used, which is main.
Showing
... | @@ -476,7 +476,7 @@ gem 'ssh_data', '~> 1.2' | ... | @@ -476,7 +476,7 @@ gem 'ssh_data', '~> 1.2' |
gem 'spamcheck', '~> 0.1.0' | gem 'spamcheck', '~> 0.1.0' | ||
# Gitaly GRPC protocol definitions | # Gitaly GRPC protocol definitions | ||
gem 'gitaly', '~> 14.9.0.pre.rc2' | gem 'gitaly', '~> 14.9.0.pre.rc3' | ||
# KAS GRPC protocol definitions | # KAS GRPC protocol definitions | ||
gem 'kas-grpc', '~> 0.0.2' | gem 'kas-grpc', '~> 0.0.2' | ||
... | ... |
Please register or sign in to comment