修改fork后端问题和前端问题

This commit is contained in:
sylor_huang@126.com
2020-03-24 14:23:34 +08:00
parent 16f380f665
commit 3841eb7630
9 changed files with 271631 additions and 8 deletions

View File

@@ -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