Commit b23b76b7 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'ce-12464-remove-gitpushservice' into 'master'

Fix call to removed GitPushService

See merge request gitlab-org/gitlab-ce!30222
parents e7d0d50f f33707d5
......@@ -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,
Git::BranchPushService.new(
issue.project,
@user,
oldrev: issue.project.repository.commit("master").sha,
newrev: commit_sha,
ref: 'refs/heads/master').execute
ref: 'refs/heads/master'
).execute
branch_name
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