diff options
| author | Robert Speicher <robert@gitlab.com> | 2018-08-08 21:15:45 +0000 |
|---|---|---|
| committer | Robert Speicher <robert@gitlab.com> | 2018-08-08 21:15:45 +0000 |
| commit | 2fb6ea3e6ffc8706d36a2c728678ebc35153c299 (patch) | |
| tree | 93485d198a71daeab33f747ac7dad447bf295463 /lib | |
| parent | 3aaf4751e09262c53544a1987f59b1308af9b6c1 (diff) | |
| parent | f4ce4a3c31a9a7fb2fa0bb7daa185d34b8c03c00 (diff) | |
| download | gitlab-shell-2fb6ea3e6ffc8706d36a2c728678ebc35153c299.tar.gz | |
Merge branch 'rd-support-git-config-options' into 'master'
Pass custom git_config_options to Gitaly
See merge request gitlab-org/gitlab-shell!221
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/action/gitaly.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/action/gitaly.rb b/lib/action/gitaly.rb index b95ff17..6630b1d 100644 --- a/lib/action/gitaly.rb +++ b/lib/action/gitaly.rb @@ -11,10 +11,11 @@ module Action 'git-receive-pack' => File.join(ROOT_PATH, 'bin', 'gitaly-receive-pack') }.freeze - def initialize(actor, gl_repository, gl_username, git_protocol, repository_path, gitaly) + def initialize(actor, gl_repository, gl_username, git_config_options, git_protocol, repository_path, gitaly) @actor = actor @gl_repository = gl_repository @gl_username = gl_username + @git_config_options = git_config_options @git_protocol = git_protocol @repository_path = repository_path @gitaly = gitaly @@ -24,6 +25,7 @@ module Action new(actor, json['gl_repository'], json['gl_username'], + json['git_config_options'], json['git_protocol'], json['repository_path'], json['gitaly']) @@ -39,7 +41,7 @@ module Action private - attr_reader :actor, :gl_repository, :gl_username, :repository_path, :gitaly + attr_reader :actor, :gl_repository, :gl_username, :git_config_options, :repository_path, :gitaly def git_protocol @git_protocol || ENV['GIT_PROTOCOL'] # TODO: tidy this up @@ -98,6 +100,7 @@ module Action 'gl_repository' => gl_repository, 'gl_id' => actor.identifier, 'gl_username' => gl_username, + 'git_config_options' => git_config_options, 'git_protocol' => git_protocol } end |
