Commit 3c713de0 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'gh-branch-cleanup' into 'master'

Ensure branch cleanup regardless of whether the GitHub import process succeeds

Closes #17766


See merge request !4450
parents 0e2490c0 3b4f03de
...@@ -40,6 +40,9 @@ v 8.8.4 ...@@ -40,6 +40,9 @@ v 8.8.4
- Fix todos page throwing errors when you have a project pending deletion - Fix todos page throwing errors when you have a project pending deletion
- Reduce number of SQL queries when rendering user references - Reduce number of SQL queries when rendering user references
v 8.8.4 (unreleased)
- Ensure branch cleanup regardless of whether the GitHub import process succeeds
v 8.8.3 v 8.8.3
- Fix 404 page when viewing TODOs that contain milestones or labels in different projects. !4312 - Fix 404 page when viewing TODOs that contain milestones or labels in different projects. !4312
- Fixed JS error when trying to remove discussion form. !4303 - Fixed JS error when trying to remove discussion form. !4303
......
...@@ -89,11 +89,11 @@ module Gitlab ...@@ -89,11 +89,11 @@ module Gitlab
end end
end end
delete_refs(branches_removed)
true true
rescue ActiveRecord::RecordInvalid => e rescue ActiveRecord::RecordInvalid => e
raise Projects::ImportService::Error, e.message raise Projects::ImportService::Error, e.message
ensure
delete_refs(branches_removed)
end end
def create_refs(branches) def create_refs(branches)
......
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