2011-09-12

Saving executable permissions with Subversion

After getting angry at Subversion for failing to save "u+x" permissions on my version-controlled scripts, I finally Google'd for the solution. Turns out, it's simple. Just as you use "svn move" rather than "mv" to move a versioned file, you use "svn propset" to make a script executable:

$ svn propset svn:executable ON [filename]
$ svn commit

Thanks to John M, who says he referred to this page (see also these details).