diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-03-07 00:12:06 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-03-07 00:12:06 -0800 |
commit | 5be94f4b67ef124aae9723d715f61b5c568e14d6 (patch) | |
tree | 853399c3720406edf67cde3417712883e05a89e0 | |
parent | eb7bbedb20e57e7ff266dfd0611d4d25b69cde1b (diff) | |
parent | 1bc0bd32444feb8d571b6d95a2bede2fb67bb951 (diff) | |
download | gitlab-ce-5be94f4b67ef124aae9723d715f61b5c568e14d6.tar.gz |
Merge pull request #521 from abhid/testing-post-receive-hook
Adapt to new web_hook_data method. fixes #509
-rw-r--r-- | app/controllers/hooks_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/hooks_controller.rb b/app/controllers/hooks_controller.rb index 7c5f7631f4e..72da6f98947 100644 --- a/app/controllers/hooks_controller.rb +++ b/app/controllers/hooks_controller.rb @@ -32,7 +32,7 @@ class HooksController < ApplicationController def test @hook = @project.web_hooks.find(params[:id]) commits = @project.commits(@project.default_branch, nil, 3) - data = @project.web_hook_data(commits.last.id, commits.first.id, "refs/heads/#{@project.default_branch}") + data = @project.web_hook_data(commits.last.id, commits.first.id, "refs/heads/#{@project.default_branch}", current_user.keys.first.identifier) @hook.execute(data) redirect_to :back |