Commit fb0f27f3 authored by Valery Sizov's avatar Valery Sizov

[CE upstream] fix mirrors

parent 04f1bcef
......@@ -10,7 +10,12 @@ class GitTagPushService < BaseService
SystemHooksService.new.execute_hooks(build_system_push_data.dup, :tag_push_hooks)
project.execute_hooks(@push_data.dup, :tag_push_hooks)
project.execute_services(@push_data.dup, :tag_push_hooks)
CreateCommitBuildsService.new.execute(project, current_user, @push_data)
CreateCommitBuildsService.new.execute(
project,
current_user,
@push_data,
mirror_update: params[:mirror_update]
)
ProjectCacheWorker.perform_async(project.id)
true
......
......@@ -75,7 +75,16 @@ module Projects
next if old_tag_target == tag.target
GitTagPushService.new.execute(project, current_user, old_tag_target, tag.target, "#{Gitlab::Git::TAG_REF_PREFIX}#{tag.name}", mirror_update: true)
GitTagPushService.new(
project,
current_user,
{
oldrev: old_tag_target,
newrev: tag.target,
ref: "#{Gitlab::Git::TAG_REF_PREFIX}#{tag.name}",
mirror_update: true
}
).execute
end
fetch_result
......
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