Oops, use the more recent (and less brittle) directory test.
authorAmitai Schlair <schmonz@magnetic-babysitter.(none)>
Sat, 22 Aug 2009 06:22:36 +0000 (02:22 -0400)
committerAmitai Schlair <schmonz@magnetic-babysitter.(none)>
Sat, 22 Aug 2009 06:22:36 +0000 (02:22 -0400)
IkiWiki/Plugin/cvs.pm

index 076af26f3b451f5627aa361012cc001ff8e36fd4..ac188d4a123569921236a4f4c3254fd14988f0fe 100644 (file)
@@ -25,7 +25,7 @@ sub getopt () {
        # "cvs add dir" acts immediately on the repository.
        # post-commit gets confused by this and doesn't need to act on it.
        # If that's why we're here, terminate the process.
-       @ARGV == 3 && $ARGV[1] eq "NONE" && $ARGV[2] eq "NONE" && exit 0;
+       ((grep /New directory/, @ARGV) > 0) && exit 0;
 }
 
 sub checkconfig () {