Only examine argv if the VCS is cvs.
authorAmitai Schlair <schmonz@magnetic-babysitter.(none)>
Sun, 30 Aug 2009 06:00:49 +0000 (02:00 -0400)
committerAmitai Schlair <schmonz@magnetic-babysitter.(none)>
Sun, 30 Aug 2009 06:00:49 +0000 (02:00 -0400)
IkiWiki/Wrapper.pm

index 87c2ffc89f0e9543c6ed8d095a8a7ae73921ab05..cc2223d7a4ded0277c9e594b67841449cdd7bd50 100644 (file)
@@ -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="";