I am trying to configure the built-in post-commit hook for VisualSVN Server. I configured the post-commit script directly through VisualSVN Server Manager and it is as follows:
"%VISUALSVN_SERVER%\bin\VisualSVNServerHooks.exe" ^
commit-notification "%1" -r %2 ^
--from [email protected] --to [email protected] ^
--smtp-server mail.posscribble.com
The post-commit fails with the following error message:
Can someone help me understand why VisualSVN is referencing the C:\Development\Source\format path? I have also tried replacing the environment variable (i.e. %VISUALSVN_SERVER%) with the direct path to the directory where VisualSVNServerHooks.exe is located to no avail. What am I doing wrong here?
After scouring web forums someone recommended taking the parenthesis off the first argument even though the path to the repository has parenthesis in it so that it is just %1 and that solved the problem. The working VisualSVN post-commit script is below:
"%VISUALSVN_SERVER%\bin\VisualSVNServerHooks.exe" ^
commit-notification %1 -r %2 ^
--from [email protected] --to [email protected] ^
--smtp-server mail.posscribble.com