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

Re: Post-commit(.bat) Issues on Windows 2003 Server

From: Nathan Kidd <nathan-svn_at_spicycrypto.ca>
Date: 2007-01-17 17:36:44 CET

Ben Nolan wrote:
> I am having some problems getting the post-commit hook script to work
> properly on Windows 2003 Server.
...
> our setup is one machine hosting the SVN server and OpenSSH
...
> OpenSSH is run as my own user account, which has administrator
> privileges on all the revelant machines.
...
> The post-commit script itself is as follows:
...
> set svn="\\2699_0000\c$\progra~1\subversion\bin\svn.exe"
> set svnpath="\\2699_0000\c$\progra~1\subversion\bin"
...
> When it's run by myself manually, I get this output in the log:
>
> 2007-01-17 10:24:33.498 10:24
> 2007-01-17 10:24:34.639 At revision 135.
...
> However, when it's called by SVN, I get this in the log:
>
> 2007-01-17 10:25:57.842 10:25
...
> I've tried using local paths and mapped drives in the script, but
> these do not seem to work.

I would conclude similarly that it is an issue of the user that's
running the post-commit hook doesn't have proper permissions, despite
what you tried.

Suggestions:

  1. you have 'echo on', but are loosing that output. Try making
post-commit.cmd a simple wrapper like:
        the-real-post-comit-hook.cmd %* > %~dp0MY.LOG 2>&1

MY.LOG should give some clues.

  2. in the-real-post-commit-hook.cmd try
        echo CURRENTUSER=%USERDOMAIN%\%USERNAME%

Hope that helps,

-Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 17 17:33:32 2007

This is an archived mail posted to the Subversion Users mailing list.