From: karl@d1f18fed27c24017d3937186b8675b57da67efc7 Date: Wed, 17 Jun 2020 16:41:57 +0000 (-0400) Subject: Added a comment: documentation of post-commit wrappers X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/6c8f11bd8ee449464d30504aa6130e3fdc8cd979 Added a comment: documentation of post-commit wrappers --- diff --git a/doc/forum/installation_and_setup_questions/comment_1_6af4a43bc2bb3a239bed63357aced4ac._comment b/doc/forum/installation_and_setup_questions/comment_1_6af4a43bc2bb3a239bed63357aced4ac._comment new file mode 100644 index 000000000..b0d2627db --- /dev/null +++ b/doc/forum/installation_and_setup_questions/comment_1_6af4a43bc2bb3a239bed63357aced4ac._comment @@ -0,0 +1,23 @@ +[[!comment format=mdwn + username="karl@d1f18fed27c24017d3937186b8675b57da67efc7" + nickname="karl" + avatar="http://cdn.libravatar.org/avatar/c3c4ce72a68266355f51f0006a576199" + subject="documentation of post-commit wrappers" + date="2020-06-17T16:41:57Z" + content=""" +I set up a new wiki \"by hand\". https://ikiwiki.info/setup/byhand/ says: + +> 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). + +However, there are no commented-out wrapper configurations in the ikiwiki.setup file created by --dumpsetup, as far as I could discern. + +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. + +So I blindly changed the =>'s to :'s, and it worked (yay!): + + wrappers: [ { wrapper: \"/my/svn/wiki/hooks/post-commit-ikiwiki\", wrappermode: \"04755\", notify: 1, } ] + +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] + + +"""]]