Running NArrange from SVN pre-commit hook

喜夏-厌秋 提交于 2019-12-25 03:07:33

问题


I am trying to execute NArrange from SVN pre-commit hook using following command:

"C:\Fullpath\narrange-console.exe" "C:\SolutionDir\SolutionFile.sln" /b /t

It returns with an Error: "The hook script returned an error: "

Any one any at rescue?

EDIT: This hook are tortoisesvn client hooks.


回答1:


The pre-commit hook is evaluated on the repository server; not on the client. And pre-commit hooks can't change what is to be committed. (They can only deny a commit if it is not valid for some rules).

You could look at tortoisesvn client hooks, or at a post commit that does a cleanup commit when a file changes. (But make sure you don't get in an endless loop :))



来源:https://stackoverflow.com/questions/680886/running-narrange-from-svn-pre-commit-hook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!