1

I have a webpage I'm in charge of and I've placed it inside my SVN trunk. Every time I update files I need to chmod a+r them (I think since svn up unhooks the files first and then it recreates them with the default mask which gives no read access).

As you can infer, the webserver lives in unixland, I would like to arrange that all the svn-controlled files in some subdirectory will have a+r access mode. is this a task for a special umask? or a svn hook?

I have no idea...

Thanks!

Yossi Farjoun
  • 2,180
  • 3
  • 17
  • 25
  • your case? http://stackoverflow.com/questions/139315/can-i-run-a-script-when-i-commit-to-subversion – Marek Sebera Sep 17 '11 at 17:17
  • I'm not sure, all these hooks seem to be running on the serverside. and in any case they do not to be a post-update hook. or am I mistaken? Also, I'm not sure that a hook is the correct thing to do, hence the question. – Yossi Farjoun Sep 17 '11 at 18:00

1 Answers1

1

What is your UMASK set to? When I do a checkout on Subversion, my permissions are rw-r--r-- for files and rwxr-xr-x for directories.

There's no Subversion hook for mere updates or checkouts.

David W.
  • 105,218
  • 39
  • 216
  • 337