Allow PostReceivePack to be enabled with Gitaly

This commit is contained in:
Alejandro Rodríguez 2017-05-30 22:16:43 -04:00
parent 8039b9c3c6
commit 870a8bbbdd
2 changed files with 2 additions and 3 deletions

View File

@ -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'

View File

@ -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