diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-06-10 12:28:04 +0200 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-06-10 12:28:04 +0200 |
commit | 16bd4e566862c17ed0d78e6bd9326171246104ef (patch) | |
tree | e8e89cef4c9ee6ea9499386fb81914a6accf7550 /lib/gitlab/workhorse.rb | |
parent | a9857f8c2f37668853bcc44b89d4c5e34adcf9e4 (diff) | |
parent | e0f3e44b3e67b80543b6956c7ae46035fabc696f (diff) | |
download | gitlab-ce-16bd4e566862c17ed0d78e6bd9326171246104ef.tar.gz |
Merge branch 'master' into workhorse-helpers
Diffstat (limited to 'lib/gitlab/workhorse.rb')
-rw-r--r-- | lib/gitlab/workhorse.rb | 7 |
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, |