This commit is contained in:
Jasder 2019-10-11 14:02:19 +08:00
parent 6c9f4b08ee
commit 492a0e10da
1 changed files with 1 additions and 1 deletions

View File

@ -1124,7 +1124,7 @@ class ProjectsController < ApplicationController
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?
repoisitory.delete unless repoisitory.blank?
@project.update_column(:gpid, nil)
@project.update_column(:forked_from_project_id, nil)
@project_to_destroy = @project