OSDN Git Service

Fix add fail when file name include space at commit dialog.
authorFrank Li <lznuaa@gmail.com>
Fri, 3 Apr 2009 03:06:13 +0000 (11:06 +0800)
committerFrank Li <lznuaa@gmail.com>
Fri, 3 Apr 2009 03:06:13 +0000 (11:06 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/Git/GitStatusListCtrl.cpp

index 40de313..330c775 100644 (file)
@@ -2692,7 +2692,7 @@ void CGitStatusListCtrl::OnContextMenuList(CWnd * pWnd, CPoint point)
                                                if(path == NULL)\r
                                                        continue;\r
                                                CString cmd;\r
-                                               cmd.Format(_T("git.exe add %s"),path->GetGitPathString());\r
+                                               cmd.Format(_T("git.exe add \"%s\""),path->GetGitPathString());\r
                                                CString output;\r
                                                if(!g_Git.Run(cmd,&output,CP_ACP))\r
                                                {\r