Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-08-21 13:03:32 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-08-21 13:03:32 +0300
commit5dac2937945cd3099ddf83ca7771b8f7ec3efac7 (patch)
tree73ccf7f50631472788ec672290324eefc60935a9 /doc/api
parentc0dcf8ce3c1e3d3ee2cb0e73eee615060a864714 (diff)
parentf4f321b9023d5aba76541f442fe1061d70186f27 (diff)
Merge branch 'tc-api-fork-owners' into 'master'
Allow project owners to set up forking relation through API Closes #40550 See merge request gitlab-org/gitlab-ce!18104
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/projects.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index bda4164ee92..0936ff52dae 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -1413,12 +1413,17 @@ DELETE /projects/:id/hooks/:hook_id
Note the JSON response differs if the hook is available or not. If the project hook
is available before it is returned in the JSON response or an empty response is returned.
-## Admin fork relation
+## Fork relationship
-Allows modification of the forked relationship between existing projects. Available only for admins.
+Allows modification of the forked relationship between existing projects. Available only for project owners and admins.
### 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
```