OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21f3da2
)
fix #742
author
Hanfei Shen
<hanfei.shen@saybot.com>
Thu, 26 Apr 2012 11:00:29 +0000
(19:00 +0800)
committer
Hanfei Shen
<hanfei.shen@saybot.com>
Thu, 26 Apr 2012 11:00:29 +0000
(19:00 +0800)
app/controllers/hooks_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/hooks_controller.rb
b/app/controllers/hooks_controller.rb
index
72da6f9
..
d0dd35c
100644
(file)
--- 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.identifi
er)
+ data = @project.
post_receive_data(commits.last.id, commits.first.id, "refs/heads/#{@project.default_branch}", current_us
er)
@hook.execute(data)
redirect_to :back