summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2015-01-07 13:47:41 -0800
committerValery Sizov <valery@gitlab.com>2015-01-07 13:47:41 -0800
commit30efc790a459c4f1f30a14771e463fdf13a4c6e8 (patch)
tree3ea48c28719fb4fff8d18c453600cb1136963fa6
parent9d898f8b0508f43dfffb694d5f480a09bf400a0f (diff)
downloadgitlab-ci-30efc790a459c4f1f30a14771e463fdf13a4c6e8.tar.gz
fix test hook
-rw-r--r--app/services/test_hook_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/test_hook_service.rb b/app/services/test_hook_service.rb
index e85a016..4c496d3 100644
--- a/app/services/test_hook_service.rb
+++ b/app/services/test_hook_service.rb
@@ -1,5 +1,5 @@
class TestHookService
def execute(hook, current_user)
- WebHookService.new.build_end(hook.project.last_build)
+ WebHookService.new.build_end(hook.project.commits.last.last_build)
end
end