Friday, April 15, 2011

Running NArrange from SVN pre-commit hook

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.

From stackoverflow
  • 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 :))

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.