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

Post hook weirdness?

From: Rory Clark <rory_at_clarkzoo.org>
Date: 2006-02-13 06:04:11 CET

Summary of the problem:
I've written a script that sends e-mail during the post-commit hook and it
works, when I'm doing commits from the machine where the repository resides,
but it doesn't work from a remote machine. So this is likely a config issue
by my guesstimates.
 
More detail:

* The Repository Machine -

* OS: Windows Server 2003
* Subversion: v1.2.3
* Access: SVNServe
* Running under a lower privilege user account

* The Remote Client -

* OS: Windows Server 2003
* Subversion: v1.2.3 / TortoiseSVN: v1.3.1 (the command Subversion
client is not used directly)

* The Hook

* In the hooks directory of the repository, I have post-commit.cmd
with the following commands and makes the assumption that there is no
environment settings:
set REPOS="%1"
set REV="%2"

c:\WINNT\system32\cscript.exe
F:\SVNWorking\Development\Tools\email-commit.vbs %REPOS% %REV%
>f:\svnroot\norwescon\errFile.log

* The Problem In Action

* Prior to any commits, I delete the errFile.log from The Repository
Machine.
* On The Repository Machine...

* I modify a file and I commit it.
* errFile.log is created.
* E-mail is sent and delivered to the appropriate recipients
* Result: It works!

* On The Remote Client...

* I modify a file and I commit it.
* The errFile.log is not created on The Repository Machine.
* No e-mail is received and I can't find the e-mail in the mail server
logs.
* Result: It doesn't work.

Does anyone have any ideas as I'm at a loss at this point.
 
Thanks!
Rory
Received on Mon Feb 13 06:05:46 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.