Added a comment: documentation of post-commit wrappers
parent
478fd9ff6f
commit
6c8f11bd8e
|
@ -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]
|
||||
|
||||
|
||||
"""]]
|
Loading…
Reference in New Issue