summaryrefslogtreecommitdiff
path: root/lib/gitlab/git/hooks_service.rb
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2017-10-25 14:01:57 -0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2017-10-25 14:01:57 -0300
commit42a45392a92e44d63b49c86b67bacb82b0dea860 (patch)
tree4d20325baa02805977b975fae7a07ad6554b07b5 /lib/gitlab/git/hooks_service.rb
parent3ddffec0d62146e27298a982a7d2935dbe518fb9 (diff)
downloadgitlab-ce-42a45392a92e44d63b49c86b67bacb82b0dea860.tar.gz
Fix the incorrect value being used to set GL_USERNAME on hooksgl-username-hook-fix
Diffstat (limited to 'lib/gitlab/git/hooks_service.rb')
-rw-r--r--lib/gitlab/git/hooks_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/hooks_service.rb b/lib/gitlab/git/hooks_service.rb
index c327e9b1616..f302b852b35 100644
--- a/lib/gitlab/git/hooks_service.rb
+++ b/lib/gitlab/git/hooks_service.rb
@@ -8,7 +8,7 @@ module Gitlab
def execute(pusher, repository, oldrev, newrev, ref)
@repository = repository
@gl_id = pusher.gl_id
- @gl_username = pusher.name
+ @gl_username = pusher.username
@oldrev = oldrev
@newrev = newrev
@ref = ref