Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-28 22:36:09 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-28 22:36:09 +0400
commit7f65339fffaf6d051338ee399bfe439234ce70a0 (patch)
tree4479732a3e8b3451ce876458376f96bd3c409b71 /app/services/git_push_service.rb
parent777456b29ccf69774048061bb0aac91e4406fef8 (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.rb4
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