diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-05-30 22:45:54 -0400 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-05-30 22:45:54 -0400 |
commit | be835f93c593e2545e2172983bdf92e059099a29 (patch) | |
tree | 047323e5c22ebbfa4177ae6cb692d8cfa7ad16ee /lib/gitlab_post_receive.rb | |
parent | db96f7244f52842798e2fb4261677838d2766162 (diff) | |
download | gitlab-shell-be835f93c593e2545e2172983bdf92e059099a29.tar.gz |
Use gl_repository if present when enqueing Sidekiq PostReceive jobs83-follow-up-from-handle-gl_repository-env-variable-and-use-it-in-api-calls
Diffstat (limited to 'lib/gitlab_post_receive.rb')
-rw-r--r-- | lib/gitlab_post_receive.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab_post_receive.rb b/lib/gitlab_post_receive.rb index e987019..00a1b1b 100644 --- a/lib/gitlab_post_receive.rb +++ b/lib/gitlab_post_receive.rb @@ -107,9 +107,9 @@ class GitlabPostReceive def update_redis # Encode changes as base64 so we don't run into trouble with non-UTF-8 input. changes = Base64.encode64(@changes) - # TODO: Change to `@gl_repository || @repo_path` in next release. + # TODO: Change to `@gl_repository` in next release. # See https://gitlab.com/gitlab-org/gitlab-shell/merge_requests/130#note_28747613 - project_identifier = @repo_path + project_identifier = @gl_repository || @repo_path queue = "#{config.redis_namespace}:queue:post_receive" msg = JSON.dump({ |