mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
修改fork后端问题和前端问题
This commit is contained in:
@@ -25,7 +25,7 @@ class Projects::ForkService < ApplicationService
|
||||
|
||||
result = Gitea::Repository::ForkService.new(@project.owner, @target_owner, @project.identifier, @organization).call
|
||||
|
||||
@project.update_column('forked_count', @project.forked_count + 1)
|
||||
@project.update_column('forked_count', @project&.forked_count.to_i + 1)
|
||||
new_repository.update_column('url', result['clone_url']) if result
|
||||
|
||||
clone_project
|
||||
|
||||
Reference in New Issue
Block a user