This is a bit of a hack and only fixes it for the repository, not the destination.
There are probably many other places where a UNC path will not work and this is
expected to be fixed in new version of msysgit.
It is worth doing this here however as the most likely place for a user to require a UNC path is when cloning.
{\r
CString dir=dlg.m_Directory;\r
CString url=dlg.m_URL;\r
+ // is this a windows format UNC path, ie starts with \\ \r
+ if (url.Find(_T("\\\\")) == 0)\r
+ {\r
+ // yes, change all \ to /\r
+ // this should not be necessary but msysgit does not support the use \ here yet\r
+ url.Replace( _T('\\'), _T('/'));\r
+ }\r
CString cmd;\r
cmd.Format(_T("git.exe clone \"%s\" \"%s\""),\r
url,\r