]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/forum/installation_and_setup_questions/comment_1_6af4a43bc2bb3a239bed63357aced4ac._comment
Added a comment: documentation of post-commit wrappers
[git.ikiwiki.info.git] / doc / forum / installation_and_setup_questions / comment_1_6af4a43bc2bb3a239bed63357aced4ac._comment
1 [[!comment format=mdwn
2  username="karl@d1f18fed27c24017d3937186b8675b57da67efc7"
3  nickname="karl"
4  avatar="http://cdn.libravatar.org/avatar/c3c4ce72a68266355f51f0006a576199"
5  subject="documentation of post-commit wrappers"
6  date="2020-06-17T16:41:57Z"
7  content="""
8 I set up a new wiki \"by hand\". https://ikiwiki.info/setup/byhand/ says: 
10 > Uncomment the configuration for the wrapper for your revision control system, and configure thewrapper path appropriately (for Git, it should be the path to hooks/post-update inside the bare git repository).
12 However, there are no commented-out wrapper configurations in the ikiwiki.setup file created by --dumpsetup, as far as I could discern.
14 https://ikiwiki.info/post-commit/discussion/ has an example, but it (like much else I see around here) uses Perl syntax, and so no longer applies to the yaml ikiwiki.setup, yielding the usual YAML::XS::Load Error.
16 So I blindly changed the =>'s to :'s, and it worked (yay!):
18     wrappers: [ { wrapper: \"/my/svn/wiki/hooks/post-commit-ikiwiki\", wrappermode: \"04755\", notify: 1, } ]
20 If I didn't miss the real documentation for this config file setting, it would be nice to have it in the --dumpsetup file, or the post-commit page, or the rcs/details page, or somewhere. Thanks. --[[KarlBerry]
23 """]]