Tech Journal Back to Tech Journal

Checking in binary files into CVS

There no good way to make this work! I even tried using -W to specify CVS-wrappers on the command line, and edited $CVSROOT/CVSROOT/cvswrappers! They only help for the SECOND commit, and not the initial import. Ugh.

To fix a screwed-up CVS binary file "foo" with a good binary "foo.good", do this:

$ cvs admin -kb foo
# the admin line doesn't affect future checkins until we do the following:
$ rm foo
$ cp foo.good foo
$ cvs update -kb foo
$ cvs commit -f -m "binary fix" foo
Last updated on 2006-10-07 15:00:00 -0700, by Shalom Craimer

Back to Tech Journal