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

Re: post-commit script not executing

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Tue, 10 Nov 2009 17:02:40 -0600

On Nov 10, 2009, at 11:48, Tyler wrote:

> I have full paths set, I know about the env variable issue.
>
> Here is my post-commit.bat file:
>
> @echo off
>
> echo empty > empty.txt
> D:\Subversion1.4.2\bin\svn.exe update D:\SVN\test-shadow
> 1>error.txt 2>&1
>
> The echo empty is just to tell if the script is executed at all, and
> it doesn't get created unless I execute directly from the command
> line.
>
> The working copy and repo are on the same machine. And I'm not sure
> which credentials to pass to the update command? Not that the script
> seems to execute at all at this point.

Use a full path to error.txt, e.g.:

echo empty > D:\path\to\error.txt

Also make sure the user the script is running as (e.g. apache) has
permission to write the error.txt file in that directory.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-11 00:03:28 CET

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.