diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 13e0034eb..bc457568f 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -1121,7 +1121,7 @@ class ProjectsController < ApplicationController def destroy ActiveRecord::Base.transaction do g = Gitlab.client - g.delete_project(@project.gpid) + g.delete_project(@project.gpid) unless @project.gpid.blank? # 删除Trustie版本库记录 repoisitory = Repository.where(:project_id => @project.id, :type => GITLABTYPE).first repoisitory.delete unless repository.blank?