Fix inheritance for git_common

Avoids repo type pointer issues when casting from void

(cherry picked from commit 676dd4ceec)
This commit is contained in:
Seth Hillbrand
2025-03-16 18:04:47 -07:00
parent 28ba36129a
commit e1436d3597
14 changed files with 210 additions and 122 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ bool GIT_PULL_HANDLER::PerformFetch( bool aSkipLock )
if( git_remote_connect( remote, GIT_DIRECTION_FETCH, &remoteCallbacks, nullptr, nullptr ) )
{
AddErrorString( wxString::Format( _( "Could not connect to remote '%s': %s" ), "origin",
git_error_last()->message ) );
KIGIT_COMMON::GetLastGitError() ) );
return false;
}
@@ -90,7 +90,7 @@ bool GIT_PULL_HANDLER::PerformFetch( bool aSkipLock )
if( git_remote_fetch( remote, nullptr, &fetchOptions, nullptr ) )
{
AddErrorString( wxString::Format( _( "Could not fetch data from remote '%s': %s" ),
"origin", git_error_last()->message ) );
"origin", KIGIT_COMMON::GetLastGitError() ) );
return false;
}