General Question

dookie's avatar

How to change permissions on a file in subversion?

Asked by dookie (61points) May 26th, 2008
1 response
“Great Question” (0points)

I accidentally checked a file into subversion with 755 permissions (rwxr-xr-x) instead of 644 (rw-r—r—). Now, every time the file is checked out, it has the wrong permissions.

I can modify the permissions of the file locally (using chmod), but when I try to commit them, subversion does not detect a modification.

Is there anyway to solve this problem with editing .svn files?

Observing members: 0
Composing members: 0

Answers

paulc's avatar

Subversion does not store or version the permissions on files which, to me, makes sense – it is concerned only with the contents and structure of your files. The exception is that you can set svn:executable on a file which will restore the executable bit when you do a checkout (on *nix systems only, of course).

If you absolutely must maintain those permissions then I’d suggest making a checkout script that does a chmod after your checkout has completed.

Answer this question

Login

or

Join

to answer.

Mobile | Desktop


Send Feedback   

`