]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Added a comment: documentation of post-commit wrappers
authorkarl@d1f18fed27c24017d3937186b8675b57da67efc7 <karl@web>
Wed, 17 Jun 2020 16:41:57 +0000 (12:41 -0400)
committeradmin <admin@branchable.com>
Wed, 17 Jun 2020 16:41:57 +0000 (12:41 -0400)
doc/forum/installation_and_setup_questions/comment_1_6af4a43bc2bb3a239bed63357aced4ac._comment [new file with mode: 0644]

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 (file)
index 0000000..b0d2627
--- /dev/null
@@ -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]
+
+
+"""]]