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

Re: Running Hook Scripts when accessing repository with file:///

From: Andy Levy <andy.levy_at_gmail.com>
Date: Mon, 30 Jun 2008 14:26:29 -0400

On Mon, Jun 30, 2008 at 3:37 AM, David Chiew
<David.Chiew_at_quantium.com.au> wrote:
> Hi All,
>
> I've been having trouble getting a subversion post-commit hook to run at
> all after performing a commit.
>
> My set up is as follows:
> - Running off Windows XP
> - Developers access the repository using file:///O:/Repository (a shared
> network drive)
> - ie. No Apache, SubVersion server.
> - Have create post-commit.bat which sits in O:\Repository\hooks
>
> post-commit.bat never seems to execute when we commit code!
>
> I found a similar post from Casey who had a similar issue, does anyone
> know whether hooks will work under a direct file-based subversion setup?

When you use file:///, the hook scripts execute on the workstation
which performed the action (in this case the commit). So, if any
paths, drive mappings, permissions, programs, etc. are different from
what you expect in the hook script, it'll likely fail.

This is one of the many reasons that using file:/// access across a
mapped drive with multiple users is so heavily discouraged. You really
ought to be running an actual Subversion server in this situation.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-30 20:26:51 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.