scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
833 stars 91 forks source link

Doesn't Trigger Git Hooks #143

Open glassresistor opened 8 years ago

glassresistor commented 8 years ago

So I've been building a project with this assuming git hooks would work so I could do things like sync a github repo with the local wiki copy.

I went ahead and setup a server debugged a bunch of issues then found out the post-commit(and the rest) hook isn't being triggered.

Any ideas how get this to work?

Also I've been looking at your code and it would be easy to add a push command here https://github.com/scragg0x/realms-wiki/blob/master/realms/modules/wiki/models.py#L146-L150

and then allow people to define the remote and branch to go for.

Based on this and the bugs associated with Google at work(my other issue) I'm considering working on this myself if you want to coordinate let me know.

gazpachoking commented 8 years ago

Hmm, it appears dulwich should already be executing the hooks... https://github.com/jelmer/dulwich/blob/master/dulwich/repo.py#L626

I haven't done any testing though.

gazpachoking commented 7 years ago

I did a quick test and it didn't seem to work for me either. Didn't dig in to why, but did start #155 which I think would be an even nicer solution.