Skip to content
Snippets Groups Projects
Commit 4e5de3e6 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Doesn't trigger Git hooks when cleaning up restored branches from GitHub

parent 22780c4a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -131,8 +131,10 @@ module Gitlab
def clean_up_restored_branches(branches)
branches.each do |name, _|
client.delete_ref(repo, "heads/#{name}")
project.repository.rm_branch(project.creator, name)
project.repository.delete_branch(name) rescue Rugged::ReferenceError
end
project.repository.after_remove_branch
end
 
def apply_labels(issuable)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment