Skip to content
Snippets Groups Projects
Commit c71222ba authored by Hanfei Shen's avatar Hanfei Shen
Browse files

fix #742

parent 21f3da23
No related branches found
No related tags found
1 merge request!743fix #742
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment