summaryrefslogtreecommitdiff
path: root/lib/gitlab/workhorse.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-06-10 12:28:04 +0200
committerDouwe Maan <douwe@selenight.nl>2016-06-10 12:28:04 +0200
commit16bd4e566862c17ed0d78e6bd9326171246104ef (patch)
treee8e89cef4c9ee6ea9499386fb81914a6accf7550 /lib/gitlab/workhorse.rb
parenta9857f8c2f37668853bcc44b89d4c5e34adcf9e4 (diff)
parente0f3e44b3e67b80543b6956c7ae46035fabc696f (diff)
downloadgitlab-ce-16bd4e566862c17ed0d78e6bd9326171246104ef.tar.gz
Merge branch 'master' into workhorse-helpers
Diffstat (limited to 'lib/gitlab/workhorse.rb')
-rw-r--r--lib/gitlab/workhorse.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb
index 8930149b12c..388f84dbe0e 100644
--- a/lib/gitlab/workhorse.rb
+++ b/lib/gitlab/workhorse.rb
@@ -6,6 +6,13 @@ module Gitlab
SEND_DATA_HEADER = 'Gitlab-Workhorse-Send-Data'
class << self
+ def git_http_ok(repository, user)
+ {
+ 'GL_ID' => Gitlab::ShellEnv.gl_id(user),
+ 'RepoPath' => repository.path_to_repo,
+ }
+ end
+
def send_git_blob(repository, blob)
params = {
'RepoPath' => repository.path_to_repo,