Creating a fork #2562
Unanswered
jalanh11640
asked this question in
Q&A
Creating a fork
#2562
Replies: 2 comments 3 replies
-
Hey @jalanh11640, could you provide the entire snippet and logs (feel free to redact private information)? Something doesn't quite add up in your code there. To answer your side question, yes, I believe you'll need access to the parent group - as this is the namespace where you're creating the new project, so you need project creation permissions there. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Here's another data point. I just ran the following curl command.
The project was not cloned. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create a script to fork projects from 'software/common' to 'software/projectX/forked' I've ensured that the 'forked' group exists. I have a problem with forking. Here's my code.
prj = gl.projects.get("software/common/clock")
fork = glProject.forks.create({'namespace': "software/projectX/forked" , 'visibility': 'internal'})
Two exceptions occur.
gitlab.exceptions.GitlabHttpError: 404: 404 Not Found
gitlab.exceptions.GitlabCreateError: 404: 404 Not Found
The gitlab instance was created with a the 'software' group token.
What am I doing wrong?
Side question, if I provide a 'software/common' group token when instantiating the gitlab instance, can I fork to 'software/projectX' or is the 'software' group token required?
Thanks,
Jeff
Beta Was this translation helpful? Give feedback.
All reactions