summaryrefslogtreecommitdiff
path: root/lib/gitlab/workhorse.rb
diff options
context:
space:
mode:
authorDavid Turner <dturner@twosigma.com>2017-08-03 14:38:33 -0400
committerDavid Turner <novalis@novalis.org>2017-09-29 18:16:55 -0400
commit01ce58bde4ddb9bdf3c54dbd2cc65f7a6b81661e (patch)
treebf4a2f8c34e09a5577b4935c0fed0c5d9eb8a7c1 /lib/gitlab/workhorse.rb
parentdbcf48af8b21c0f1e54b73ea421911028081e1c1 (diff)
downloadgitlab-ce-01ce58bde4ddb9bdf3c54dbd2cc65f7a6b81661e.tar.gz
add username to authorized result, so that gitlab-shell can pass it to hooks
Diffstat (limited to 'lib/gitlab/workhorse.rb')
-rw-r--r--lib/gitlab/workhorse.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb
index 17550cf9074..45f246242f1 100644
--- a/lib/gitlab/workhorse.rb
+++ b/lib/gitlab/workhorse.rb
@@ -22,9 +22,9 @@ module Gitlab
params = {
GL_ID: Gitlab::GlId.gl_id(user),
GL_REPOSITORY: Gitlab::GlRepository.gl_repository(project, is_wiki),
+ GL_USERNAME: user&.username,
RepoPath: repo_path
}
-
server = {
address: Gitlab::GitalyClient.address(project.repository_storage),
token: Gitlab::GitalyClient.token(project.repository_storage)