I have a simple pre-commit script pre-commit.bat
Code is simple :)
exit 0

If i update or add any file in workdir and commit changes - it's work fine. But when i'm delete file and try to commit changes i have error message "Error: The hook script returned an error:".

Changlist is only one file - deleted file.

Im do some trys and some configuration to commit. When I add and/or update it's work great, but when i have a deleted file in changelist (no matter one file or both with update or add) script not work. I'm write diff script (they write log), but I think script not starting.

I'm , read in this messageboard message from Stefan and he said problem fixed, but sorry it's wrong.