diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-20 16:41:59 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-20 16:41:59 +0200 |
commit | c71a7896b1d5ac23785393b486d64902af56d33e (patch) | |
tree | 5656866bbcb0d1ec0f78feff5883e4145e1144cc /app | |
parent | 9d0607440968550be8b2e0e170d09b0b0500d592 (diff) | |
download | gitlab-ce-c71a7896b1d5ac23785393b486d64902af56d33e.tar.gz |
fix test button functionality for project -> service -> gitlab ci
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/services_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/services_controller.rb b/app/controllers/services_controller.rb index d0df469b967..25a06501e07 100644 --- a/app/controllers/services_controller.rb +++ b/app/controllers/services_controller.rb @@ -26,8 +26,7 @@ class ServicesController < ProjectResourceController end def test - commits = project.repository.commits(project.default_branch, nil, 3) - data = project.post_receive_data(commits.last.id, commits.first.id, "refs/heads/#{project.default_branch}", current_user) + data = GitPushService.new.sample_data(project, current_user) @service = project.gitlab_ci_service @service.execute(data) |