开发者

Maintaining file permissions across SVN updates?

开发者 https://www.devze.com 2023-01-01 01:17 出处:网络
I have a series of python scripts with execute permissions in Linux.They are stored in SVN. If I then run svn up to update them, the overwritten files are back to 644 - ie no execute permissions for

I have a series of python scripts with execute permissions in Linux. They are stored in SVN.

If I then run svn up to update them, the overwritten files are back to 644 - ie no execute permissions for anyone.

Yes I could just script it to chmod +x * afterwards, but surely there's a way to store permissions in SVN or to maintain开发者_Go百科 them when you update?

Any suggestions appreciated.


You need to set the svn:executable property on the file.

svn propset svn:executable true  <filename>
0

精彩评论

暂无评论...
验证码 换一张
取 消