summaryrefslogtreecommitdiff
path: root/db/fixtures
diff options
context:
space:
mode:
authorMarkus Koller <mkoller@gitlab.com>2019-07-01 11:19:04 +0200
committerMarkus Koller <mkoller@gitlab.com>2019-07-04 19:08:05 +0200
commitf33707d54444d28bb618e00084f2825f554b207e (patch)
treee708a6ee3250ec5a3a28c9c23ee250205ecc291a /db/fixtures
parent83271d42456003f2670089a8a30312b0b2e77bcd (diff)
downloadgitlab-ce-f33707d54444d28bb618e00084f2825f554b207e.tar.gz
Fix call to removed GitPushServicece-12464-remove-gitpushservice
Diffstat (limited to 'db/fixtures')
-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