OSDN Git Service

SyncDlg Fix no patch created problem
authorFrank Li <lznuaa@gmail.com>
Fri, 24 Jul 2009 15:06:59 +0000 (23:06 +0800)
committerFrank Li <lznuaa@gmail.com>
Fri, 24 Jul 2009 15:06:59 +0000 (23:06 +0800)
src/TortoiseProc/SyncDlg.cpp

index 3d3d892..636eb18 100644 (file)
@@ -169,10 +169,13 @@ void CSyncDlg::OnBnClickedButtonEmail()
        \r
        this->m_strLocalBranch = this->m_ctrlLocalBranch.GetString();\r
        this->m_ctrlRemoteBranch.GetWindowText(this->m_strRemoteBranch);\r
+       this->m_ctrlURL.GetWindowText(this->m_strURL);\r
+       m_strURL=m_strURL.Trim();\r
+       m_strRemoteBranch=m_strRemoteBranch.Trim();\r
        \r
        cmd.Format(_T("git.exe  format-patch -o \"%s\" %s..%s"),\r
                                        g_Git.m_CurrentDir,\r
-                                       m_strRemoteBranch,m_strLocalBranch);\r
+                                       m_strURL+_T('/')+m_strRemoteBranch,m_strLocalBranch);\r
        \r
        if(g_Git.Run(cmd,&out,CP_ACP))\r
        {\r