OSDN Git Service

Add "" at dir and url of clone dialog to avoid space in path
authorFrank Li <lznuaa@gmail.com>
Thu, 8 Jan 2009 13:38:41 +0000 (21:38 +0800)
committerFrank Li <lznuaa@gmail.com>
Thu, 8 Jan 2009 13:38:41 +0000 (21:38 +0800)
src/TortoiseProc/Commands/CloneCommand.cpp

index bbebeaf..67b74db 100644 (file)
@@ -36,7 +36,7 @@ bool CloneCommand::Execute()
                CString dir=dlg.m_Directory;\r
                CString url=dlg.m_URL;\r
                CString cmd;\r
-               cmd.Format(_T("git.exe clone %s %s"),\r
+               cmd.Format(_T("git.exe clone \"%s\" \"%s\""),\r
                                                url,\r
                                                dir);\r
                CProgressDlg progress;\r