Commit 91bd8fc9077f6e1bea91fe1621ded68f90d881d8
Exists in
master
and in
4 other branches
Merge pull request #743 from qqshfox/fix_issue_742
fix #742
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/hooks_controller.rb
... | ... | @@ -32,7 +32,7 @@ class HooksController < ApplicationController |
32 | 32 | def test |
33 | 33 | @hook = @project.web_hooks.find(params[:id]) |
34 | 34 | commits = @project.commits(@project.default_branch, nil, 3) |
35 | - data = @project.web_hook_data(commits.last.id, commits.first.id, "refs/heads/#{@project.default_branch}", current_user.keys.first.identifier) | |
35 | + data = @project.post_receive_data(commits.last.id, commits.first.id, "refs/heads/#{@project.default_branch}", current_user) | |
36 | 36 | @hook.execute(data) |
37 | 37 | |
38 | 38 | redirect_to :back | ... | ... |