Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
870a8bbb
Commit
870a8bbb
authored
May 30, 2017
by
Alejandro Rodríguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow PostReceivePack to be enabled with Gitaly
parent
8039b9c3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
lib/gitlab/workhorse.rb
lib/gitlab/workhorse.rb
+1
-2
spec/lib/gitlab/workhorse_spec.rb
spec/lib/gitlab/workhorse_spec.rb
+1
-1
No files found.
lib/gitlab/workhorse.rb
View file @
870a8bbb
...
@@ -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'
...
...
spec/lib/gitlab/workhorse_spec.rb
View file @
870a8bbb
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment