We use CVS on Linux for software development.
I noticed that one of the scripts I'm working on is missing the execute bit set in the CVS repository.
Is there any way to add the execute bit back to the file?
I think it involves modifying the repository directly, but I don't know how to do this.
Modify the permissions of the related ,v
file in the repository. Per this article, the file is checked out with the same permissions as the ,v
file in CVSROOT.
Cvs command option watch is also preventing file permissions to be restored. If watched, when file is checked out it will be read-only. From cvs man pages:
$ cvs watch --help_options
Usage: cvs watch {on|off|add|remove} [-lR] [-a <action>]... [<path>]...
on/off: turn on/off read-only checkouts of files
So, use cvs watch off filename
to remove checkout from repository making it read only every time.