-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
How to convert normal repo to mirror? #5486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This does not currently exist. I've labeled this issue as proposal in case someone creates PR for it. |
I see. Is there a workaround? Perhaps one that involves moving issues over to another repo instead? |
You might be able to change the status in the DB directly. If I remember I think there is a |
Cool, even I should be able to pull that off. Thank you! |
Doing Unlucky for me I'm not able to use anything else than the command line. |
@tacotexmex mirrors table may need an insert too (I feel like I'm always in a constant state of jetlag, and so I apologize for missing that in my original assessment) |
Inserting a new line in Is it simply because there's already a file populating the repo from before it was a mirror? If so, how do I safely remove the relevant old repo information and files to make way for the new one? |
Perhaps you could try going into where the repositories are stored on disk and modifying the config An example config from my gitea instance of a mirror'd repo:
|
~~ I added it but it wasn't enough. Again, there's a readme file in the repo already. May that perhaps prohibit the mirroring and if so, how can I clean up the repo without causing damage? The important thing here is preserving the issues. ~~ Apparently that was enough. Thanks a bunch @techknowlogick ! |
Closing as this is a pretty niche case and I don't think the proper way to solve this particular issue. #453 tracks copying issues from one repo to another which I think would be the right feature for somebody to add to solve a problem like this |
I know mirrors may be convertes to normal repos but what about the opposite? I’d like to keep the issue repos while ditching the code itself and import it from another repo.
The text was updated successfully, but these errors were encountered: