Commit 870a8bbb authored by Alejandro Rodríguez's avatar Alejandro Rodríguez

Allow PostReceivePack to be enabled with Gitaly

parent 8039b9c3
...@@ -31,8 +31,7 @@ module Gitlab ...@@ -31,8 +31,7 @@ module Gitlab
feature_enabled = case action.to_s feature_enabled = case action.to_s
when 'git_receive_pack' when 'git_receive_pack'
# Disabled for now, see https://gitlab.com/gitlab-org/gitaly/issues/172 Gitlab::GitalyClient.feature_enabled?(:post_receive_pack)
false
when 'git_upload_pack' when 'git_upload_pack'
Gitlab::GitalyClient.feature_enabled?(:post_upload_pack) Gitlab::GitalyClient.feature_enabled?(:post_upload_pack)
when 'info_refs' when 'info_refs'
......
...@@ -244,7 +244,7 @@ describe Gitlab::Workhorse, lib: true do ...@@ -244,7 +244,7 @@ describe Gitlab::Workhorse, lib: true do
context "when git_receive_pack action is passed" do context "when git_receive_pack action is passed" do
let(:action) { 'git_receive_pack' } let(:action) { 'git_receive_pack' }
it { expect(subject).not_to include(gitaly_params) } it { expect(subject).to include(gitaly_params) }
end end
context "when info_refs action is passed" do context "when info_refs action is passed" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment