Browse Source

Merge branch 'pre_trustie_server' into trustie_server

pull/306/head
xiaoxiaoqiong 4 years ago
parent
commit
5e5093a44c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/controllers/ci/projects_controller.rb

+ 2
- 2
app/controllers/ci/projects_controller.rb View File

@@ -41,7 +41,7 @@ class Ci::ProjectsController < Ci::BaseController
ActiveRecord::Base.transaction do
if @repo
@repo.destroy! if @repo&.repo_user_id == 0
return render_error('该项目已经激活') if @repo.repo_active?
return tip_exception('该项目已经激活') if @repo.repo_active?
@repo.activate!(@project)
else
@repo = Ci::Repo.auto_create!(@ci_user, @project)
@@ -55,7 +55,7 @@ class Ci::ProjectsController < Ci::BaseController
end
render_ok
rescue Exception => ex
render_error(ex.message)
tip_exception(ex.message)
end
end



Loading…
Cancel
Save