client-side hooks , always this error:The hook script returned an error

1,071 views
Skip to first unread message

hjz

unread,
May 6, 2010, 9:57:46 AM5/6/10
to us...@tortoisesvn.tigris.org
hello,
I'm new in using TSVN, and have difficulties with setting up client-side hooks. I'm using TortoiseSVN 1.5.9-32 Bit on Win XP. Working copy is in D:\WC and hook script settings are:

Hook Type: Start Commit Hook
Working Copy Path: D:\WC
Commmand Line To Execute: D:\WC\batfile.bat
Wait for the script to finish: checked
Hide the script while running: unchecked

I also tried command lines:
cmd D:\WC\batfile.bat
cmd.exe /c D:\WC\batfile.bat

The batfile.bat file contains only one line:

exit 0

I always get "The hook script returned an error:" message when trying to commit. Without the script, commit works just fine.

What am I doing wrong?

the same as below :
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&viewType=browseAll&dsMessageId=1318067#messagefocus

PS:
1、i had try this hook script on three computers,and only one works ok and the other two return error.
2、three computer all have Symantec/Norton security software installed, it was controlled by company, and the configure of hte secutity should the same.

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

To unsubscribe from this discussion, e-mail: [users-un...@tortoisesvn.tigris.org].

Bob Archer

unread,
May 6, 2010, 12:34:39 PM5/6/10
to us...@tortoisesvn.tigris.org
> hello,
> I'm new in using TSVN, and have difficulties with setting up client-side
> hooks. I'm using TortoiseSVN 1.5.9-32 Bit on Win XP. Working copy is in
> D:\WC and hook script settings are:
>
> Hook Type: Start Commit Hook
> Working Copy Path: D:\WC
> Commmand Line To Execute: D:\WC\batfile.bat
> Wait for the script to finish: checked
> Hide the script while running: unchecked
>
> I also tried command lines:
> cmd D:\WC\batfile.bat
> cmd.exe /c D:\WC\batfile.bat
>
> The batfile.bat file contains only one line:
>
> exit 0
>
> I always get "The hook script returned an error:" message when trying to
> commit. Without the script, commit works just fine.
>
> What am I doing wrong?

Have you tried

EXIT /B 0

Or no EXIT at all?

????

BOb

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

hjz

unread,
May 8, 2010, 10:51:37 PM5/8/10
to us...@tortoisesvn.tigris.org
i tried and the same error.

PS: on 5 pc, the same hook work well on three and the other two work failed.

so i think my hook scipt is ok and possible is env problem.

>
> Have you tried
>
> EXIT /B 0
>
> Or no EXIT at all?
>
> ????
>
> BOb

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

Simon Large

unread,
May 9, 2010, 5:07:46 PM5/9/10
to us...@tortoisesvn.tigris.org
On 6 May 2010 14:57, hjz <hujia...@huawei.com> wrote:
> hello,
> I'm new in using TSVN, and have difficulties with setting up client-side hooks. I'm using TortoiseSVN 1.5.9-32 Bit on Win XP. Working copy is in D:\WC and hook script settings are:
>
> Hook Type: Start Commit Hook
> Working Copy Path: D:\WC
> Commmand Line To Execute: D:\WC\batfile.bat
> Wait for the script to finish: checked
> Hide the script while running: unchecked
>
> I also tried command lines:
> cmd D:\WC\batfile.bat
> cmd.exe /c D:\WC\batfile.bat
>
> The batfile.bat file contains only one line:
>
> exit 0
>
> I always get "The hook script returned an error:" message when trying to commit. Without the script, commit works just fine.
>
> What am I doing wrong?

You get the same error message if the hook script does not exist, for
example if you enter the wrong hook script path in the settings
dialog.

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=2606281

hjz

unread,
May 9, 2010, 9:31:53 PM5/9/10
to us...@tortoisesvn.tigris.org
i sure the hook srcipt exist and my tsvn's setting is right on the page for hook setting page.


> You get the same error message if the hook script does not exist, for
> example if you enter the wrong hook script path in the settings
> dialog.
>
> 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=2606410

hjz

unread,
May 12, 2010, 10:45:27 AM5/12/10
to us...@tortoisesvn.tigris.org
thanks for every one.
I finally found try hooks without antivirus and everything works.

may be the version of antivirus is not the same in my five pcs.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2608180
Reply all
Reply to author
Forward
0 new messages