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

前端 未结 2 718
暗喜
暗喜 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:50

    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.

    0 讨论(0)
  • 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 <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.

    0 讨论(0)
提交回复
热议问题