1
votes

I am getting the following error when i do a SVN commit.

Error: post-commit hook failed (exit code 16) with no output.

My post-commit.bat file has following code.

svn checkout file:///D:/Repositories/site1/trunk D:\svncheckout\site1
robocopy D:\svncheckout\site1 \\dev-server\site1

I am running VisualSVN service as local account on Windows Server 2008 Standard.

But post-commit.bat runs fine from command prompt.

1
You may accept and/or upvote the answer if it helped. Thanks!bahrep

1 Answers

1
votes

It seems that there is an issue with the robocopy command you run in the hook. Error code 16 indicates either a usage error of the robocopy or an error due to insufficient access privileges on the source or destination directories. I advise you to check the paths involved.