Fix call to removed GitPushService

This commit is contained in:
Markus Koller 2019-07-01 11:19:04 +02:00
parent 83271d4245
commit f33707d544
No known key found for this signature in database
GPG Key ID: A2B74A05A7A2B7B7
1 changed files with 7 additions and 5 deletions

View File

@ -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