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

Support using a bare repo as wikidata #691

Open
remexre opened this issue Oct 5, 2023 · 1 comment
Open

Support using a bare repo as wikidata #691

remexre opened this issue Oct 5, 2023 · 1 comment

Comments

@remexre
Copy link

remexre commented Oct 5, 2023

Right now, a bare Git repo will work fine for a read-only wiki, but writing will go through Data.FileStore.Git.gitSave. At best this doesn't work ("UnknownError: Could not git add 'foo' fatal: this operation must be run in a work tree "), but if a file conflicted with the name of a file in a bare repo, it would simply be overridden.

A bare repo is more convenient if some users will be git pushing to the repo rather than using the web UI, so it'd be nice to see them supported. If you have a suggested technical approach (e.g. make filestore use libgit2 instead of shelling out to Git), I might be able to put some time towards this.

@jgm
Copy link
Owner

jgm commented Oct 5, 2023

I think that using gitlib would be a nice idea -- this could perhaps be developed as a separate filestore backend so it wouldn't break compatibility.

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

No branches or pull requests

2 participants