Commit f33707d5 authored by Markus Koller's avatar Markus Koller

Fix call to removed GitPushService

parent 83271d42
...@@ -146,11 +146,13 @@ class Gitlab::Seeder::CycleAnalytics ...@@ -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) 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) issue.project.repository.commit(commit_sha)
GitPushService.new(issue.project, Git::BranchPushService.new(
issue.project,
@user, @user,
oldrev: issue.project.repository.commit("master").sha, oldrev: issue.project.repository.commit("master").sha,
newrev: commit_sha, newrev: commit_sha,
ref: 'refs/heads/master').execute ref: 'refs/heads/master'
).execute
branch_name branch_name
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment