summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz@magnetic-babysitter.(none)>2009-08-22 02:22:36 -0400
committerAmitai Schlair <schmonz@magnetic-babysitter.(none)>2009-08-22 02:22:36 -0400
commit5bdcd4d57b2ca5dbf6e3d46a693cec4d27512020 (patch)
treee67c18356f48e31b8375956136d9a9f92078a472
parent8f15311597c257eca37c1f20769b80ef8f6c82c0 (diff)
Oops, use the more recent (and less brittle) directory test.
-rw-r--r--IkiWiki/Plugin/cvs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/cvs.pm b/IkiWiki/Plugin/cvs.pm
index 076af26f3..ac188d4a1 100644
--- a/IkiWiki/Plugin/cvs.pm
+++ b/IkiWiki/Plugin/cvs.pm
@@ -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 () {