diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-28 22:36:09 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-28 22:36:09 +0400 |
commit | 7f65339fffaf6d051338ee399bfe439234ce70a0 (patch) | |
tree | 4479732a3e8b3451ce876458376f96bd3c409b71 /app/services/git_push_service.rb | |
parent | 777456b29ccf69774048061bb0aac91e4406fef8 (diff) |
Fix s500 when press ervice test button
Diffstat (limited to 'app/services/git_push_service.rb')
-rw-r--r-- | app/services/git_push_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/git_push_service.rb b/app/services/git_push_service.rb index 9584f420ab3..f9d43e60de6 100644 --- a/app/services/git_push_service.rb +++ b/app/services/git_push_service.rb @@ -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 |