OSDN Git Service

Fixed issue #133: (mv\rename problem) Command fails on folder with leading dash
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Commands / DropMoveCommand.cpp
index 61adaf9..977b60d 100644 (file)
@@ -92,7 +92,7 @@ bool DropMoveCommand::Execute()
                } \r
                CString cmd,out;\r
                \r
-               cmd.Format(_T("git.exe mv \"%s\" \"%s\""),pathList[nPath].GetGitPathString(),destPath.GetGitPathString());\r
+               cmd.Format(_T("git.exe mv -- \"%s\" \"%s\""),pathList[nPath].GetGitPathString(),destPath.GetGitPathString());\r
                if(g_Git.Run(cmd,&out,CP_ACP))\r
                {\r
                        if (CMessageBox::Show(hwndExplorer, out, _T("TortoiseGit"), MB_YESNO)==IDYES)\r