Hacking the .SVN directory
adamgotterer.com
adamgotterer.com
We use svn export anyway, but wouldn't ignoring (.) directories be the most foolproof step?
Regardless, this problem exists and it exists on some extremely large websites.
RewriteRule (\.svn)/(.*?) - [F,L]
Note the backslash before the .svn directory.I'm also not entirely sure that the question mark (zero or one quantifier) is necessary; it seems like
(.*)
would suffice for catching files within the .svn directory, but this is quickly getting out of my league. cd $build_dir
svn co path/to/project
rsync -qaz -c --delete --exclude=.svn project $host:/var/www