diff options
| author | Valery Sizov <valery@gitlab.com> | 2015-01-07 13:47:41 -0800 |
|---|---|---|
| committer | Valery Sizov <valery@gitlab.com> | 2015-01-07 13:47:41 -0800 |
| commit | 30efc790a459c4f1f30a14771e463fdf13a4c6e8 (patch) | |
| tree | 3ea48c28719fb4fff8d18c453600cb1136963fa6 | |
| parent | 9d898f8b0508f43dfffb694d5f480a09bf400a0f (diff) | |
| download | gitlab-ci-30efc790a459c4f1f30a14771e463fdf13a4c6e8.tar.gz | |
fix test hook
| -rw-r--r-- | app/services/test_hook_service.rb | 2 |
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 |
