Permalink
Browse files

fix test button functionality for project -> service -> gitlab ci

  • Loading branch information...
1 parent 9d06074 commit c71a7896b1d5ac23785393b486d64902af56d33e @randx randx committed Mar 20, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 app/controllers/services_controller.rb
View
3 app/controllers/services_controller.rb
@@ -26,8 +26,7 @@ def update
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)

0 comments on commit c71a789

Please sign in to comment.