Question

I have recently installed msysgit on my machine (its running Windows 7) to use Git for some projects. A lot of my projects are under SVN, in which I use AnkhSVN in Visual Studio 2008 to commit etc.

Since I have installed msysgit everytime I try to commit, update etc inside Visual Studio, the program C:\msysgit\bin\ssh.exe loads up, asks for my password, then Ankh throws an exception.

I currently use Pageant to save my login credentials for SVN - I have TortoiseSVN installed, which is still working fine...

Has anybody got any suggestions to get Anhk working again - without uninstalling msysgit?

Thanks

Was it helpful?

Solution

AnkhSVN (or actually SharpSvn) like most subversion clients uses the common Subversion configuration (stored in %APPDATA%\Subversion and/or the registry). If it doesn't find the configured ssh (by default ssh.exe) it uses its own ssh client SharpPlink, just like TortoiseSVN uses TortoisePlink.

In your case AnkhSVN finds your ssh.exe and assumes that you want to use that instead of its builtin ssh. You can fix this by setting an explicit ssh client in the Subversion configuration, or by removing the ssh.exe from your path. (The easiest way to explicitly set a ssh client is setting it from TortoiseSVN's settings or via the SVN_SSH environment variable)

OTHER TIPS

If you check

  • Visual Studio > Tools > Options > Source Control

you should be able to select the Source Control plugin you want.

Installing msysgit may have overridden the AnkhSVN setting.

If it's not there then I'm not sure what to suggest.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top