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

TortoiseSVN: Pre-commit Hook fails

From: Tor J. Johannessen <tjj_at_computas.com>
Date: Fri, 12 Nov 2010 07:02:23 -0800 (PST)

TortoiseSVN 1.6.11, Build 20210
Windows 7

A one line batch file with the following content is called from the hook (Command Line To Execute):
  call ant pmd.newAndChanged

I.e. it is running Ant with the target pmd.newAndChanged.

This works perfectly well when called from the Start Commit Hook, but when called from the Pre-commit Hook, it fails with the following informative message:
  The hook script returned an error:

When removing "call" from the batch file, the script is not failing, but then Ant is never called...

(To make this batch file work for the Start Commit Hook, the "call" command is necessary, otherwise the return code from ant is not propagated to Tortoise - due to the fact that ant.bat is called)

Any idea of what is wrong?

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-11-12 16:03:16 CET

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