summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz@magnetic-babysitter.(none)>2009-08-30 02:00:49 -0400
committerAmitai Schlair <schmonz@magnetic-babysitter.(none)>2009-08-30 02:00:49 -0400
commit5e94e973eeb4ba75d9c37bd801278f686f0977c3 (patch)
tree67ada7c615d9f9fe28e67cc096f472c673683ccf
parent968c6c93b4cfdb0b13609d90f058e6c4d005c75d (diff)
Only examine argv if the VCS is cvs.
-rw-r--r--IkiWiki/Wrapper.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm
index 87c2ffc89..cc2223d7a 100644
--- a/IkiWiki/Wrapper.pm
+++ b/IkiWiki/Wrapper.pm
@@ -45,8 +45,8 @@ EOF
}
my $check_cvs_add_dir="";
- # XXX conditionalize on $config{rcs} eq 'cvs'
- $check_cvs_add_dir=<<"EOF";
+ if ($config{rcs} eq 'cvs') {
+ $check_cvs_add_dir=<<"EOF";
{
int j;
for (j = 1; j < argc; j++)
@@ -54,6 +54,7 @@ EOF
exit(0);
}
EOF
+ }
my $check_commit_hook="";
my $pre_exec="";