Skip to content
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

Option to init empty wiki Git remote repository upon repository creation #7226

Open
1 task done
cadrian opened this issue Nov 4, 2022 · 7 comments
Open
1 task done
Labels
🎯 feature Categorizes as related to a new feature 👋 good first issue Good for newcomers 🐣 pull request welcome Welcome to contribute for this!

Comments

@cadrian
Copy link

cadrian commented Nov 4, 2022

Describe the feature

Hello,

On GitHub, there is this feature that for a given repo, its regular git url is repo.git, but the wiki is available at repo.wiki.git (on the GUI: "Clone this wiki locally")

Is there a way to implement that on Gogs?

Thanks!

Describe the solution you'd like

In the same way I pull my regular code from repo.git, I'd like to pull my wiki from repo.wiki.git

Describe alternatives you've considered

I can still create a specific wiki git repository, but I am not sure there is a way to make the wiki work with Gogs... What would the external URL be? How would people be able to change the wiki so that it is reflected in the wiki git repo?

It could also be a specific branch in the main repo, but that would be hard to reconcile with repositories that are mirrored on both GitHub and Gogs (yes, I have those)

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@cadrian cadrian added the 🎯 feature Categorizes as related to a new feature label Nov 4, 2022
@unknwon
Copy link
Member

unknwon commented Nov 5, 2022

If I understand your ask correctly, Gogs supports this from day 1, since this is a feature/design I like lot on GitHub.

CleanShot 2022-11-05 at 13 10 28@2x

@unknwon unknwon closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2022
@unknwon
Copy link
Member

unknwon commented Nov 5, 2022

Bonus... if there is no bug (LOL), when you migrate/mirror a repository, Gogs would make an attempt to see if <repo>.wiki.git has a valid Git response, if so, migrate that over as well.

@cadrian
Copy link
Author

cadrian commented Nov 5, 2022

Sorry but I don't find it:
image

Furthermore, Gogs does not respond favorably to an initial push request:
image

Do I need to create a page first? How is it reconciled with the existing wiki I want to push?

@unknwon
Copy link
Member

unknwon commented Nov 5, 2022

Oh right, I think you’d have to create a first page until the UI could be shown (at when the remote wiki Git repo is created).

Once the remote wiki Git repo is created on the server side, a force push might do the trick?

@cadrian
Copy link
Author

cadrian commented Nov 5, 2022

Yes. It worked. I don't know the --force option. Thanks!
(But maybe that could be an improvement?) ;-)

@unknwon
Copy link
Member

unknwon commented Nov 5, 2022

Yes. It worked. I don't know the --force option. Thanks! (But maybe that could be an improvement?) ;-)

Not a bad idea, just to clarify, the intended improvement is: Give an option to also init wiki Git repo at the main repo creation? (in that case you can start push your existing wiki, just like pushing an existing local repo to an empty remote repo)

@cadrian
Copy link
Author

cadrian commented Nov 5, 2022

Yes! That would be great :) Thanks!

@unknwon unknwon changed the title git access for wiki Option to init empty wiki Git remote repository upon repository creation Nov 5, 2022
@unknwon unknwon reopened this Nov 5, 2022
@unknwon unknwon added 👋 good first issue Good for newcomers 🐣 pull request welcome Welcome to contribute for this! labels Nov 5, 2022
micronet24 pushed a commit to micronet24/gogs that referenced this issue Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 feature Categorizes as related to a new feature 👋 good first issue Good for newcomers 🐣 pull request welcome Welcome to contribute for this!
Projects
None yet
Development

No branches or pull requests

2 participants