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

Re: Client-side hook doesn't execute

From: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Thu, 23 Aug 2012 09:13:31 +0100

On 23 August 2012 08:47, Hans <hschleichert_at_munich-metrology.com> wrote:
> Hi,
>
> I started playing with client-side hooks. Configured a "start commit" hook, and when it didn't work, I melted it all down to the following: Hook Type= start_commit_hook; Path = D:\trunk; Command Line = C:\Windows\system32\cmd.exe; Wait = true
> Show/Hide = show (see attached screenshot).
>
> When I commit D:\trunk (or any of its subdirs), I see a brief flash on the screen, like a command prompt window. I tried adding things like "/K pause" to the command line but it didn't make a change. When I change the file name ("cmd.ex") I see a "file not found" error message (which shows that TortoiseSVN is at least trying to execute the hook).
>
> My TortoiseSNV version is 1.7.8.23174 on Windows 7 32 bit; the most recent version, as of now.

Cmd.exe is not a hook script, it is just the command interpreter. You
need to provide the path to the actual script, e.g. start-commit.bat,
start-commit.js, start-commit.exe, my-own-hook.cmd, or whatever your
hook is called.

Simon

-- 
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3000385
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-08-23 10:13:40 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.