[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: .htaccess in .svn

From: Jon Riddle <list_at_jdrnetworking.com>
Date: 2004-08-31 17:18:57 CEST

No, it's not part of my tree. My working copy is web accessible so that
I can serve/view what I'm working on, but because it's a working copy,
the .svn directories are also web accessible. That's bad, because if
someone were to stumble upon my working copy from the web, they would
have access to my code through .svn/text-base/mypage.svn-base.

I can keep Apache from serving .svn by 1) adding a <Directory> directive
to my httpd.conf file, which is a hassle and would require a restart
every time I added a project or directory in a project, or 2) drop an
.htaccess file in the .svn directory that keeps Apache from serving
anything in the .svn folder or its children.

I just want to know if svn is going to choke or hiccup or make
irritating noises if it finds a .htaccess file in a .svn directory.

--
Jon
> Jon Riddle <list@jdrnetworking.com> writes:
> 
> > I keep track of several web-based projects and have just started using
> > svn.  Since my working copy is web-accessible (to be able to test as I
> > code), I can add .svn/text-base/mypage.php.svn-base and get a very nice
> > copy of my code (not a good thing).  My question is: will svn safely
> > ignore a .htaccess file that stops Apache from serving files in my .svn
> > trees?
> 
> Do you want it to ignore that file?  Why not just version it in your
> tree?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 31 17:30:39 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.