|
|
@ -37,7 +37,7 @@ class MyshixunsController < ApplicationController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
# 删除版本库
|
|
|
|
# 删除版本库
|
|
|
|
GitService.delete_repository(repo_path: @repo_path)
|
|
|
|
GitService.delete_repository(repo_path: @repo_path) unless @shixun.is_choice_type?
|
|
|
|
rescue Exception => e
|
|
|
|
rescue Exception => e
|
|
|
|
if e.message != "ActiveRecord::RecordInvalid"
|
|
|
|
if e.message != "ActiveRecord::RecordInvalid"
|
|
|
|
logger.error("######delete_repository_error:#{e.message}")
|
|
|
|
logger.error("######delete_repository_error:#{e.message}")
|
|
|
|