Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client-Side Hook Scripts are not executed #17

Open
SirViver opened this issue May 27, 2020 · 1 comment
Open

Client-Side Hook Scripts are not executed #17

SirViver opened this issue May 27, 2020 · 1 comment

Comments

@SirViver
Copy link

SirViver commented May 27, 2020

It appears the "Enable Client-Side Hooks" option does not work with this VS2019-compatible version of AnkhSVN, but I remember it working correctly with the original. For example any pre-commit hooks that should theoretically abort the commit are completely ignored when committing via AnkhSVN, whereas they trigger fine when using TortoiseSVN to commit the same file.

@SirViver
Copy link
Author

Actually I found out what the problem is: SharpSVN is compiled against SVN 1.9 whereas my TortoiseSVN installation is for SVN 1.13. SharpSVN does an internal check against the version and if it doesn't match it just doesn't load the hooks at all, even though it doesn't seem to care about the version discrepancy for other operations.

A workaround that I tested locally would be to temporarily change the HKEY_CURRENT_USER\Software\TortoiseSVN\CurrentVersion registry entry to "1.9.0.0" while executing the SvnClient.Commit(...) command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant