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

RE: Clarification on checkout and post-commit update hook

From: Jason Malinowski <jason_at_jason-m.com>
Date: Fri, 21 Aug 2009 00:03:46 -0700

Also if this is public-facing, make sure you have the .svn directories
blocked off at the HTTP server level. Otherwise the user could do something
like:

www.example.com/.svn/text-base/<filename>

Now if everything under your webroot is just the stuff like stylesheets it's
not a big deal, but if the .svns are visible it at least gives potential
hackers knowledge of your repository URLs.

Which webserver is hosting the files (not the repository)? If apache, try
this:

http://www.ducea.com/2006/08/11/apache-tips-tricks-deny-access-to-some-folde
rs/

Jason Malinowski

> -----Original Message-----
> From: Dan King [mailto:dan.king106_at_yahoo.com]
> Sent: Thursday, August 20, 2009 1:51 PM
> To: users_at_subversion.tigris.org
> Subject: Clarification on checkout and post-commit update hook
>
> I just installed and setup subversion on a windows server. I'd like to
> configure svn so that every 'commit' is reflected via update in the
> appropriate folder within the (web) server. The directory structure of
the
> repository is below, and this structure is mimicked by the htdocs folder.
> When I checkout the folders/files from the repository into the web
server's
> htdocs directory (i.e. the web server's 'working' directory), is there any
> particular way I should perform the checkout? Also, from my readings, I
> understand that I'll need a post-commit update hook; I'm not familiar with
> batch files so if anyone has done this before or knows of a good example
> please let me knows. Thanks.
>
> repo/
> | trunk/
> | | application/
> | | | models/
> | | | views/
> | | | controllers/
> | |
> | | public/
> | | | stylesheets/
> | | | javascripts/
> | | | images/
>
> htdocs/
> | application/
> | | models/
> | | views/
> | | controllers/
> |
> | public/ <--- web root
> | | stylesheets/
> | | javascripts/
> | | images/
>
> -Dan
>
> ------------------------------------------------------
>
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=23
8
> 5793
>
> To unsubscribe from this discussion, e-mail: [users-
> unsubscribe_at_subversion.tigris.org].

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2385909

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-21 09:04:54 CEST

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.