diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-05-30 22:16:43 -0400 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-05-30 22:16:43 -0400 |
commit | 870a8bbbdd7456af03b5b4159c6dee4941edb759 (patch) | |
tree | 544f627cbf1700991238fbbec612942fb4cd4341 | |
parent | 8039b9c3c6caedc19e0e44d086a007e8975134b7 (diff) | |
download | gitlab-ce-870a8bbbdd7456af03b5b4159c6dee4941edb759.tar.gz |
Allow PostReceivePack to be enabled with Gitalyenable-gitaly-receive-pack
-rw-r--r-- | lib/gitlab/workhorse.rb | 3 | ||||
-rw-r--r-- | spec/lib/gitlab/workhorse_spec.rb | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb index fe37e4da94f..18d8b4f4744 100644 --- a/lib/gitlab/workhorse.rb +++ b/lib/gitlab/workhorse.rb @@ -31,8 +31,7 @@ module Gitlab feature_enabled = case action.to_s when 'git_receive_pack' - # Disabled for now, see https://gitlab.com/gitlab-org/gitaly/issues/172 - false + Gitlab::GitalyClient.feature_enabled?(:post_receive_pack) when 'git_upload_pack' Gitlab::GitalyClient.feature_enabled?(:post_upload_pack) when 'info_refs' diff --git a/spec/lib/gitlab/workhorse_spec.rb b/spec/lib/gitlab/workhorse_spec.rb index fdbb55fc874..b1999409170 100644 --- a/spec/lib/gitlab/workhorse_spec.rb +++ b/spec/lib/gitlab/workhorse_spec.rb @@ -244,7 +244,7 @@ describe Gitlab::Workhorse, lib: true do context "when git_receive_pack action is passed" do let(:action) { 'git_receive_pack' } - it { expect(subject).not_to include(gitaly_params) } + it { expect(subject).to include(gitaly_params) } end context "when info_refs action is passed" do |