From c71222ba9e176d1970855c66c3c07d2ffe35ec96 Mon Sep 17 00:00:00 2001 From: Hanfei Shen Date: Thu, 26 Apr 2012 19:00:29 +0800 Subject: [PATCH] fix #742 --- app/controllers/hooks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/hooks_controller.rb b/app/controllers/hooks_controller.rb index 72da6f98..d0dd35cb 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}", current_user.keys.first.identifier) + data = @project.post_receive_data(commits.last.id, commits.first.id, "refs/heads/#{@project.default_branch}", current_user) @hook.execute(data) redirect_to :back