I using msysgit and TortoiseGit 1.8.15.0 under Windows 7, and then set my start-commit-hook scripts file to './workflow.bat'. the script file content as follows:
echo --------------------------------------------------------------------------- 1>&2
echo Your commit has been blocked because it didn't include a log message. 1>&2
echo Do the commit again, this time with a log message that describes your changes. 1>&2
echo --------------------------------------------------------------------------- 1>&2
exit 1
TortoiseGit will show alert box as expected when I commit my code, and then I click 'OK' button, it still show a tortoiseGit commit dialog to me after hook scripts finish. how to prevent the tortoiseGit commit dialog displays when the hook scripts exit with code 1 ?