General Question

dookie's avatar

How to change permissions on a file in subversion?

Asked by dookie (61points) May 26th, 2008

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

1 Answer

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




to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
Knowledge Networking @ Fluther