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

solved (Re: can't get post-commit.bat to execute in win32)

From: Tetsuto Teddy Nishiyama <tnishi_at_ari.ncl.omron.co.jp>
Date: 2006-04-17 08:15:52 CEST

Oy, sorry for wasting bandwidth. I found out what happened.

I was under the impression that the hooks directory would
be the "current directory". It turns out that the Apache
directory was "current" so all my output was getting created
and written into that directory and not the hooks directory.

So, it seems that the post-commit.bat IS getting executed
afterall. Now for the next step to send myself e-mail.

Teddy

P.S. wouldn't you know it! I spend several days trying to
figure why it doesn't work. Finally send for help and then
get the problem figured out a few minutes after I dial 911!

Tetsuto Teddy Nishiyama wrote:

> Hi all,
>
> I have seen very few but similar problems reported here and elsewhere
> but I still have not been able to solve the problem...hence this post.
> Any help would be greatly appreciated.
>
> PROBLEM:
> I can't get my post-commit.bat to execute. It works fine when I
> run it directly from the MS-DOS prompt, but it doesn't run at
> commits.
>
> I have read a few things about permissions. Apache is running as
> SYSTEM, and I have checked permissions and SYSTEM has all permissions
> on for the repository as well as the hook script.
>
> Currently, I have a post-commit.bat in the hooks directory that just
> has one line as I stated below to create and write a message to a file
> but nothing happens so I'm assuming it isn't executing.
>
> ENVIRONMENT:
> Windows XP Professional SP2
> Subversion 1.3.0
> Apache 2.0.55
>
> REPOSITORY INFO
> location C:\svnrepo\test
> i.e. C:\svnrepo\test\hooks
>
> POST-COMMIT
> file c:\svnrepo\test\hooks\post-commit.bat
>
> content: (just one line)
>
> echo running post-commit.bat >> test.txt
>
> should create a file and add "running post-commit.bat" to it.
>
> Thanks,
> Teddy
>
>
>
> ---------------------------------------------------------------------
> 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 Mon Apr 17 08:16:50 2006

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.