From f4f321b9023d5aba76541f442fe1061d70186f27 Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Thu, 2 Aug 2018 13:30:24 +0200 Subject: Clean up LFS objects when creating fork relation A forked project stores its LFS objects in the `forked_from_project`. So the LFS objects become inaccessible, and therefore delete them from the database so they'll get cleaned up. To be refactored when implementing https://gitlab.com/gitlab-org/gitlab-ce/issues/39769 --- doc/api/projects.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/api/projects.md') diff --git a/doc/api/projects.md b/doc/api/projects.md index 448562b8dec..0936ff52dae 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -1419,6 +1419,11 @@ Allows modification of the forked relationship between existing projects. Availa ### Create a forked from/to relation between existing projects +CAUTION: **Warning:** +This will destroy the LFS objects stored in the fork. +So to retain the LFS objects, make sure you've pulled them **before** creating the fork relation, +and push them again **after** creating the fork relation. + ``` POST /projects/:id/fork/:forked_from_id ``` -- cgit v1.2.1