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 #7408

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

micronet24
Copy link

@micronet24 micronet24 commented Mar 24, 2023

Describe the pull request

When the wiki for a repo is enabled, but doesn't have content yet, pushing to the wiki's git url will always fail.
This change provides a configuration option to automatically create an empty git repo, which can be pushed to.

Link to the issue: #7226

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code or have provided the test plan.

Test plan

  1. Enable repository.AUTOCREATE_WIKI in app.ini
  2. create a new repo eg owner/repo and enable the wiki for that project
    • the wiki should now be empty and ask to create the first new page
    • no repo.wiki.git is yet available on the server
  3. push to git@gogs:owner/repo.wiki.git
    • the repo.wiki.git is initialized
    • the content of the push is stored on the server
    • If there are Markdown-files in the wiki, the wiki-side displays them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant