修复删除版本库功能
This commit is contained in:
parent
45bbd7b293
commit
abc6eafdb4
|
@ -810,12 +810,12 @@ class ProjectsController < ApplicationController
|
|||
g = Gitlab.client
|
||||
@gitlab_repository.destroy
|
||||
@gitlab_repository = nil
|
||||
@project.update_attribute(:gpid, nil)
|
||||
scm = params[:repository_scm] || (Redmine::Scm::Base.all & Setting.enabled_scm).first
|
||||
@repository = Repository.factory(scm)
|
||||
@repository.is_default = @project.repository.nil?
|
||||
g.delete_project(@project.gpid)
|
||||
rescue Exception => e
|
||||
@project.update_attribute(:gpid, nil)
|
||||
puts e
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue