4 ms·
. It's especially bad because svn puts a .svn in each directory. With e.g. mercurial or git, you can tuck the (visible) site in a subdirectory of the repo itse
by masklinn 17y ago
.
It's especially bad because svn puts a .svn in each directory. With e.g. mercurial or git, you can tuck the (visible) site in a subdirectory of the repo itself (project/pages), and the .hg/.git (project/.hg|project/.git) won't be accessible.
Of course the best option is still to use exports and symlinks.
- chrismear 17y agoOf course, it's not too tricky to configure, say, Apache to block access to all the .svn directories: http://www.subversionary.org/martintomes/preventing-access-to-svn-folders-in-apache http://www.subversionary.org/martintomes/preventing-access-t... http://blog.samdevore.com/archives/2006/05/01/hivelogic-preventing-svn-exposure/ http://blog.samdevore.com/archives/2006/05/01/hivelogic-prev...
- masklinn 17y agoIt's not, but if you ever forget to set this config anywhere, you're hosed. The ideal way is to not take the risk in the first place. You can't forget something you don't have to do.
- masklinn 17y agoCase in point to complement my previous post: http://fr.php.net/.svn/entries http://fr.php.net/.svn/entries secure http://fr2.php.net/.svn/entries http://fr2.php.net/.svn/entries open
- thismat 17y agoSpot on. Even with proper auth rules it would still trouble me knowing I had my source exposed to the world. I'm a big fan of exports and now, thanks to you and masskin(sp?), really digging the symlinks idea.