|
|
|
@ -479,6 +479,7 @@ class ShixunsController < ApplicationController
|
|
|
|
|
else
|
|
|
|
|
# 如果有仓库,就要删
|
|
|
|
|
if @shixun.shixun_secret_repository&.repo_name
|
|
|
|
|
@shixun.shixun_secret_repository.lock!
|
|
|
|
|
GitService.delete_repository(repo_path: @shixun.shixun_secret_repository.repo_path)
|
|
|
|
|
@shixun.shixun_secret_repository.destroy
|
|
|
|
|
end
|
|
|
|
|