Mark Mayo
Mark Mayo

Reputation: 12585

Maintaining file permissions across SVN updates?

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 them when you update?

Any suggestions appreciated.

Upvotes: 34

Views: 15026

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 599470

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

svn propset svn:executable true  <filename>

Upvotes: 47

Related Questions