-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Github Mirrors and Wiki #2309
Comments
Maybe a bug I think. |
Seems like. I've meanwhile verified two things:
Sure, only being a "read-only mirror" one could simply drop and recreate it, but (especially for large repositories and on slow connections) this would be an ugly work-around 😉 |
Not a bug, since we only verify that the remote repo (the wiki in this case) exists when we start the import. Enhancement though 🙂 Basically, show a "try import wiki"-button IF the repo is a mirror AND does not have a wiki setup. |
Bug, enhancement, feature … call it what you like as long as it works 😁 And yes, such a button would be a good start. Though I think it could not hurt to automatically check for the existence of a wiki on each sync run. Gitea doesn't ask whether to look for it on the initial run either (and that's very OK this way), so I wouldn't expect I need to do so later. Instead of that button, I'd rather suggest a checkbox (on the first import screen and then later on the config screen of that repo) on whether I'm interested in the wiki. So one can always change one's mind. |
Actually it could. Polling invalid repos on GitHub will get you rate-limited 🙁 |
Sounds like a good idea though 🙂 |
Oh, wasn't aware of that. Which means it would need a kind of flag like "already checked today, there is no wiki – check again tomorrow" or the like, to prevent that. Until a "perfect approach" is found, that button would be helpful already (and not necessarily obsolete thereafter). |
Half a year later (I'm running Gitea 1.3.2 now): Did I miss the button, or did you miss adding it? I meanwhile lost track of which repos are simply lacking wikis on both ends, or which I have to trigger for sync. And there are several repos in my installation where I know I have to initiate the mirror – but apart from dropping the mirror entirely and recreating it, I still have no idea how to get it running. TL;DR: any progress on this? |
No one is working on it. Feel free to contribute. People mainly work on bugs that they want/need to fix :/ |
@bkcsoft I'd feel free if time would permit – and if I'd be a GO programmer. Got a bunch of other projects to care for, and I'm not a GO programmer – so unfortunately I can't. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
Oh dear bot, have mercy with the devs and grant them some more time 🤣 (sorry, couldn't resist) |
If this enhancement request ever does find it's way in as a feature, it would be nice to have an option to not import a wiki as part the same setting during mirror creation. I can only find an option to disable the wiki after the mirror is created and I have a GithHub mirror that is failing after logging: [W] Clone wiki: exit status 128 - fatal: Remote branch master not found in upstream origin I would love to have an option to test mirroring with the wiki disabled to see if that resolves the early termination of the mirroring process. |
I'd add that it would be cool to be able to decide if the wiki is to be mirrored at all or not. Use case: I want to mirror a git repository, but want to have my own wiki for my own notes / documentation. Possible implementation:
If the user changes his mind and wants to mirror the wiki when it didn't choose so (or the other way around), simply drop the project and re-create it. |
Same issue when I found that I cannot create my notes to a mirror repository, even if I re-open/close the wiki function in repository settings, it won't show any button to create a new wiki page in the wiki tab |
[x]
):Description
I've set up a couple of mirrors from Github. If they have a Wiki when the mirror is created, it comes along (I didn't check yet if such a wiki is updated later). But if the Wiki is added later, future syncs don't seem to pick it up. Is there any step I've missed, or anything I can do to have Gitea picking it up – apart from deleting the mirror and creating a new one?
The text was updated successfully, but these errors were encountered: