Fix some regressions in git handling

Set default to rebase for pull
Update error string on auth failure
Improve trace logging
This commit is contained in:
Seth Hillbrand
2025-03-21 11:55:44 -07:00
parent 0d6838b803
commit b8225ba2d6
12 changed files with 461 additions and 193 deletions
+3 -2
View File
@@ -73,11 +73,12 @@ bool GIT_CLONE_HANDLER::PerformClone()
TestedTypes() = 0;
ResetNextKey();
git_repository* newRepo = nullptr;
wxString remote = GetCommon()->m_remote;
if( git_clone( &newRepo, m_URL.ToStdString().c_str(), m_clonePath.ToStdString().c_str(),
if( git_clone( &newRepo, remote.mbc_str(), m_clonePath.mbc_str(),
&cloneOptions ) != 0 )
{
AddErrorString( wxString::Format( _( "Could not clone repository '%s'" ), m_URL ) );
AddErrorString( wxString::Format( _( "Could not clone repository '%s'" ), remote ) );
return false;
}