diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-08-22 14:54:14 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-08-23 11:45:20 +0300 |
commit | 65f83941c39c14c2af9da5064393545ea2f7b3e5 (patch) | |
tree | c18f36d6ec757954ac7af3b9674bbb20b2ac45c6 /app/services/git_hooks_service.rb | |
parent | 9b9309329207449ef022bdcf06bff5f8eae36032 (diff) |
Make gl_repository a G::G::Repository attribute
Diffstat (limited to 'app/services/git_hooks_service.rb')
-rw-r--r-- | app/services/git_hooks_service.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/services/git_hooks_service.rb b/app/services/git_hooks_service.rb index e85007c26e0..c14133230da 100644 --- a/app/services/git_hooks_service.rb +++ b/app/services/git_hooks_service.rb @@ -3,9 +3,9 @@ class GitHooksService attr_accessor :oldrev, :newrev, :ref - def execute(committer, project, oldrev, newrev, ref) - @project = project - @gl_id = committer.gl_id + def execute(committer, repository, oldrev, newrev, ref) + @repository = repository + @gl_id = committer.gl_id @oldrev = oldrev @newrev = newrev @ref = ref @@ -26,7 +26,7 @@ class GitHooksService private def run_hook(name) - hook = Gitlab::Git::Hook.new(name, @project) + hook = Gitlab::Git::Hook.new(name, @repository) hook.trigger(@gl_id, oldrev, newrev, ref) end end |