Merge pull request #521 from abhid/testing-post-receive-hook

Adapt to new web_hook_data method. fixes #509
This commit is contained in:
Dmitriy Zaporozhets 2012-03-07 00:12:06 -08:00
commit 5be94f4b67

View file

@ -32,7 +32,7 @@ class HooksController < ApplicationController
def test def test
@hook = @project.web_hooks.find(params[:id]) @hook = @project.web_hooks.find(params[:id])
commits = @project.commits(@project.default_branch, nil, 3) 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) @hook.execute(data)
redirect_to :back redirect_to :back