RE: Stuck with commitinfo while setting up CVSspam

"Shah, Kunal" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.general
Message-ID <[email protected]>
Thanks Todd.

That was helpful.  I was able to modify commitinfo.


Kunal


-----Original Message-----
From: Todd Denniston [mailto:[email protected]] 
Sent: Thursday, April 23, 2009 3:29 PM
To: Shah, Kunal
Cc: [email protected]
Subject: Re: Stuck with commitinfo while setting up CVSspam

Shah, Kunal wrote, On 04/22/2009 07:05 PM:
> Hello,
> 
> Need help !
> 
> I have been trying to install CVSspam for our project and stuck in checking in commitinfo file.
> 
> Below are the lines that I added in commitinfo file.
> 
> ---------------------------------------------------------------------------------------
> ^cobra $CVSROOT/CVSROOT/record_lastdir.rb
> 
> # always allow commits to CVSROOT
> ^CVSROOT /bin/cat>/dev/null
> 
> # Invoke CVSspam lastdir script,
> DEFAULT ...
> ---------------------------------------------------------------------------------------
> 
> 
> Error that I get while checking in commitinfo file.
> 
> ---------------------------------------------------------------------------------------
> cvs commit: cannot find pre-commit filter `/bin/cat>/dev/null': No such file or directory
> cvs commit: Pre-commit check failed
> ---------------------------------------------------------------------------------------
> 

`cvs -ver` reports what?
which OS and distribution is your server on?
I think you need a space or two, like:
^CVSROOT /bin/cat >/dev/null
or
^CVSROOT /bin/cat > /dev/null

BTW after you fix that ... not sure if cat will return at all considering that 
it is not going to get any user input nor file input.
was this line for other than testing?
I would suggest /bin/true and /bin/false.

> Now I'm not able to make any changes in commitinfo and probably in CVSROOT directory.
> 

One of those rare instances where you actually have to use vi IN the repository.
i.e. you have to vi the commitinfo IN the repository.
and then from your checked out CVSROOT commit the same thing back in.


> Appreciate your help on this.
> 
> 
> Thanks,
> 
> Kunal
> 
> 



-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.