2013/2/25 csware <notifications@github.com>

> In src/TortoiseProc/CommitDlg.cpp:
>
> > +				globalXDGConfigA.ReleaseBuffer();
> > +			}
> > +			CString systemConfig = g_Git.GetGitSystemConfig();
> > +			if (!systemConfig.IsEmpty())
> > +			{
> > +				CStringA systemConfigA = CUnicodeUtils::GetMulti(systemConfig, CP_UTF8);
> > +				if (git_config_add_file_ondisk(config, systemConfigA.GetBuffer(), 1, FALSE))
> > +				{
> > +					systemConfigA.ReleaseBuffer();
> > +					CMessageBox::Show(m_hWnd, CGit::GetLibGit2LastErr(_T("Could not open system config.")), _T("TortoiseGit"), MB_OK | MB_ICONERROR);
> > +					git_config_free(config);
> > +					git_repository_free(repository);
> > +					break;
> > +				}
> > +				systemConfigA.ReleaseBuffer();
> > +			}
>
> With libgit2/libgit2#1291 <https://github.com/libgit2/libgit2/issues/1291>this should not be needed any more. It's just temporary atm.
>
> Okay I see. I think it is okay to merge.


> —
> Reply to this email directly or view it on GitHub<https://github.com/TortoiseGit/TortoiseGit/pull/39/files#r3134583>.
>
>