How do I add execute permission to a file in CVS after it's already been checked in?

前端 未结 2 756
暗喜
暗喜 2021-01-11 09:47

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 ther

2条回答
  •  庸人自扰
    2021-01-11 09:53

    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 ]... []...
    
    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.

提交回复
热议问题