重置回正式服fork功能

This commit is contained in:
呱呱呱
2023-07-24 09:28:51 +08:00
parent 3741445d2b
commit 7eb9f0ce2e
4 changed files with 10 additions and 58 deletions

View File

@@ -18,7 +18,6 @@ class Projects::ForkService < ApplicationService
:license_id, :ignore_id, {repository: [:identifier, :hidden]}]
result = Gitea::Repository::ForkService.new(@project.owner, @target_owner, @project.identifier, @organization, @new_identifier).call
return false if result['clone_url'].nil?
clone_project.owner = @target_owner
clone_project.forked_from_project_id = @project.id
clone_project.gpid = result['id']