0

我正在尝试使用以下命令从 SVN 预提交挂钩执行NArrange :

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

它返回错误:“挂钩脚本返回错误:”

有没有人在抢救?

编辑:这个钩子是 tortoisesvn 客户端钩子。

4

1 回答 1

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 :))

于 2009-03-25T10:46:14.843 回答