mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
Merge branch 'dev_trustie' into dev_chain
This commit is contained in:
@@ -386,7 +386,6 @@ class ApplicationController < ActionController::Base
|
||||
else
|
||||
User.current
|
||||
end
|
||||
# User.current
|
||||
end
|
||||
|
||||
## 默认输出json
|
||||
|
||||
@@ -97,7 +97,7 @@ class RepositoriesController < ApplicationController
|
||||
end
|
||||
|
||||
def sync_mirror
|
||||
return render_error("正在镜像中..") if @repo.mirror.warning?
|
||||
return render_error("正在镜像中..") if @repo.mirror.waiting?
|
||||
|
||||
@repo.sync_mirror!
|
||||
SyncMirroredRepositoryJob.perform_later(@repo.id, current_user.id)
|
||||
|
||||
Reference in New Issue
Block a user