Skip to content
Snippets Groups Projects
Commit 7f65339f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix s500 when press ervice test button

parent 777456b2
No related branches found
No related tags found
1 merge request!5081fixed command to update init script
Loading
Loading
@@ -59,8 +59,8 @@ class GitPushService
#
def sample_data(project, user)
@project, @user = project, user
commits = project.repository.commits(project.default_branch, nil, 3)
post_receive_data(commits.last.id, commits.first.id, "refs/heads/#{project.default_branch}")
@push_commits = project.repository.commits(project.default_branch, nil, 3)
post_receive_data(@push_commits.last.id, @push_commits.first.id, "refs/heads/#{project.default_branch}")
end
 
protected
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment