You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rory Clark <ro...@clarkzoo.org> on 2006/02/13 05:04:11 UTC
Post hook weirdness?
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