summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2019-07-05 12:47:17 +0000
committerLin Jen-Shin <godfat@godfat.org>2019-07-05 12:47:17 +0000
commitb23b76b7f448eecf7bf6d85004add174c0b34421 (patch)
tree5bfd71de17852607321fc6f60c09a58182f71a2c
parente7d0d50ff14fe7160d9997472add38cb5154df09 (diff)
parentf33707d54444d28bb618e00084f2825f554b207e (diff)
downloadgitlab-ce-b23b76b7f448eecf7bf6d85004add174c0b34421.tar.gz
Merge branch 'ce-12464-remove-gitpushservice' into 'master'
Fix call to removed GitPushService See merge request gitlab-org/gitlab-ce!30222
-rw-r--r--db/fixtures/development/17_cycle_analytics.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/db/fixtures/development/17_cycle_analytics.rb b/db/fixtures/development/17_cycle_analytics.rb
index 7a86fe2eb7c..78ceb74da65 100644
--- a/db/fixtures/development/17_cycle_analytics.rb
+++ b/db/fixtures/development/17_cycle_analytics.rb
@@ -146,11 +146,13 @@ class Gitlab::Seeder::CycleAnalytics
commit_sha = issue.project.repository.create_file(@user, filename, "content", message: "Commit for #{issue.to_reference}", branch_name: branch_name)
issue.project.repository.commit(commit_sha)
- GitPushService.new(issue.project,
- @user,
- oldrev: issue.project.repository.commit("master").sha,
- newrev: commit_sha,
- ref: 'refs/heads/master').execute
+ Git::BranchPushService.new(
+ issue.project,
+ @user,
+ oldrev: issue.project.repository.commit("master").sha,
+ newrev: commit_sha,
+ ref: 'refs/heads/master'
+ ).execute
branch_name
end