can't use cvsspam with cvs-1.11.22-5

View: New views
2 Messages — Rating Filter:   Alert me  

can't use cvsspam with cvs-1.11.22-5

by VladimirPoopen :: Rate this Message:

| View Threaded | Show Only this Message

In relation to using cvsspam, the following line in commitinfo results in an error

When I add:
# Always allow commits to CVSROOT

^CVSROOT /bin/cat>/dev/null

The error I get:
cvs server: cannot find pre-commit filter `/bin/cat>/dev/null': No such
file or directory
cvs server: Pre-commit check failed

Fedora Core 8 had a similar issue
https://bugzilla.redhat.com/show_bug.cgi?id=447595

After the above fails, I have to log in, sudo su -  and edit commitinfo and commitinfo,v in order to get things working again


Re: can't use cvsspam with cvs-1.11.22-5

by Mark D. Baushke-2 :: Rate this Message:

| View Threaded | Show Only this Message

The commitinfo is not a general purpose shell script itself.
You may find it desirable to use

cat <<EOF > CVSROOT/devnull.sh
#!/bin/sh
exec /bin/cat > /dev/null
EOF
chmod +x CVSROOT/devnull.sh

and then use

^CVSROOT $CVSROOT/CVSROOT/devnull.sh

in your commitinfo.

        -- Mark


_______________________________________________
Bug-cvs mailing list
Bug-cvs@...
http://lists.nongnu.org/mailman/listinfo/bug-cvs

attachment0 (192 bytes) Download Attachment