OSDN Git Service

Fixed issue #180: Create patch serial doesn't work when there is "\" at end of path
authorFrank Li <lznuaa@gmail.com>
Fri, 25 Sep 2009 00:42:22 +0000 (08:42 +0800)
committerFrank Li <lznuaa@gmail.com>
Fri, 25 Sep 2009 00:42:22 +0000 (08:42 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseProc/Commands/FormatPatchCommand.cpp

index f816f40..8dc75ca 100644 (file)
@@ -65,6 +65,7 @@ bool FormatPatchCommand::Execute()
                        range.Format(_T("%s..%s"),dlg.m_From,dlg.m_To);\r
                        break;\r
                }\r
+               dlg.m_Dir.Replace(_T('\\'),_T('/'));\r
                cmd.Format(_T("git.exe format-patch -o \"%s\" %s"),\r
                        dlg.m_Dir,\r
                        range\r