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

RE: Post-commit client script on network drive

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Wed, 21 Apr 2010 11:54:24 -0400

Can you run the batch file from the command line while it is on the network share? It could be some security setting or app preventing you from running a remote bat file.

BOb

From: Robby Ceyssens [mailto:Robby_at_Livios.be]
Sent: Wednesday, April 21, 2010 11:27 AM
To: users_at_tortoisesvn.tigris.org
Subject: Post-commit client script on network drive

I successfully created a client post-commit hook script to update my testing webserver.

REM * Argument 6 returns the working directory *
SET WORKING_PATH=%6
REM * Replace the working directory with the test server directory *
SET SERVER_PATH=%WORKING_PATH:C:\Users\RobbyC\Desktop\svn=V:%
REM * Remove double quotes *
SET SERVER_PATH=%SERVER_PATH:~1,-1%
ECHO %SERVER_PATH%
REM * Update the test server via svn *
IF EXIST %SERVER_PATH%\NUL.EXT "C:\Program Files\TortoiseSVN\bin\tortoiseproc.exe" /command:update /path:"%SERVER_PATH%"

The script (post-commit.bat) works fine if located on my local drive but when located on the network drive (which my account has full access to) the post-commit script does not run.

Robby

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2591724

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-04-21 17:52:56 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.