diff options
-rw-r--r-- | IkiWiki/Setup/Automator.pm | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/IkiWiki/Setup/Automator.pm b/IkiWiki/Setup/Automator.pm index 8cf158db2..060a8be56 100644 --- a/IkiWiki/Setup/Automator.pm +++ b/IkiWiki/Setup/Automator.pm @@ -56,7 +56,23 @@ sub import (@) { #{{{ "--url", $setup{url}, "--cgiurl", $setup{cgiurl} ); - push @params, "--rcs", $setup{rcs} if $setup{rcs}; + if ($setup{rcs}) { + push @params, "--rcs", $setup{rcs}; + if ($setup{rcs} eq 'git') { + push @params, "--set", "git_wrapper=". + $setup{repository}."/hooks/post-update"; + } + elsif ($setup{rcs} eq 'svn') { + push @params, "--set", "svn_wrapper=". + $setup{repository}."/hooks/post-commit"; + } + elsif ($setup{rcs} eq 'bzr') { + # TODO + } + elsif ($setup{rcs} eq 'mercurial') { + # TODO + } + } if (exists $setup{add_plugins}) { foreach my $plugin (@{$setup{add_plugins}}) { push @params, "--plugin", $plugin; |