Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin/projects_controller.rb')
-rw-r--r--app/controllers/admin/projects_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/admin/projects_controller.rb b/app/controllers/admin/projects_controller.rb
index 4fea8709b70..e1982eee577 100644
--- a/app/controllers/admin/projects_controller.rb
+++ b/app/controllers/admin/projects_controller.rb
@@ -35,6 +35,9 @@ class Admin::ProjectsController < AdminController
end
def destroy
+ # Delete team first in order to prevent multiple gitolite calls
+ @project.truncate_team
+
@project.destroy
redirect_to admin_projects_path, notice: 'Project was successfully deleted.'