OSDN Git Service

Fixed issue #133: (mv\rename problem) Command fails on folder with leading dash
[tortoisegit/TortoiseGitJp.git] / src / Git / Git.cpp
index ae4c4ef..0d00b9a 100644 (file)
@@ -1165,7 +1165,7 @@ int CGit::Revert(CTGitPath &path,bool keep)
        }\r
        else if(path.m_Action & CTGitPath::LOGACTIONS_REPLACED )\r
        {\r
-               cmd.Format(_T("git.exe mv \"%s\" \"%s\""),path.GetGitPathString(),path.GetGitOldPathString());\r
+               cmd.Format(_T("git.exe mv -- \"%s\" \"%s\""),path.GetGitPathString(),path.GetGitOldPathString());\r
                if(g_Git.Run(cmd,&out,CP_ACP))\r
                        return -1;\r
                \r