X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=blobdiff_plain;f=IkiWiki%2FWrapper.pm;h=87c2ffc89f0e9543c6ed8d095a8a7ae73921ab05;hp=6555fe625f8e542e786f3b6d7d05a72772ea207f;hb=992d0aac09a3e3e81d7ad999910a4a026984f804;hpb=ae474d8e14631ff519ed7d54bb64eaa0538f56d9 diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm index 6555fe625..87c2ffc89 100644 --- a/IkiWiki/Wrapper.pm +++ b/IkiWiki/Wrapper.pm @@ -44,6 +44,17 @@ EOF $test_receive=IkiWiki::Receive::gen_wrapper(); } + my $check_cvs_add_dir=""; + # XXX conditionalize on $config{rcs} eq 'cvs' + $check_cvs_add_dir=<<"EOF"; + { + int j; + for (j = 1; j < argc; j++) + if (strstr(argv[j], "New directory") != NULL) + exit(0); + } +EOF + my $check_commit_hook=""; my $pre_exec=""; if ($config{post_commit}) { @@ -119,6 +130,7 @@ addenv(char *var, char *val) { int main (int argc, char **argv) { char *s; +$check_cvs_add_dir $check_commit_hook $test_receive $envsave