[cvsnt] commitinfo not passing arguments to the specified script.

mike.porter at bt.com mike.porter at bt.com
Thu Jul 31 16:39:54 BST 2003


I am trying to prevent the commit of filenames with spaces into the
repository but do not seem to be able to pass any arguments to my script
from the commitinfo file.

Any help would be appreciated.

I have the follwing commitinfo entry and file 

commitinfo includes line : 
	ALL ${CVSROOT}\CVSROOT\commitCheck.pl

and script commitCheck.pl is :
   #!c:\usr\bin\perl
   for( $i = 1; $i < @ARGV; $i++ ) {
     	if ($ARGV[$i] =~ /\s/) {
	   print STDERR "Spaces in file $ARGV[$i]!!\n";
	   exit (1);
  	}
   }





Rgds
Mike P


More information about the cvsnt mailing list