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
@@ -74,7 +74,7 @@ PushResult GIT_PUSH_HANDLER::PerformPush()
if( git_remote_connect( remote, GIT_DIRECTION_PUSH, &remoteCallbacks, nullptr, nullptr ) )
{
AddErrorString( wxString::Format( _( "Could not connect to remote: %s" ),
git_error_last()->message ) );
KIGIT_COMMON::GetLastGitError() ) );
return PushResult::Error;
}
@@ -102,7 +102,7 @@ PushResult GIT_PUSH_HANDLER::PerformPush()
if( git_remote_push( remote, &refspecs, &pushOptions ) )
{
AddErrorString( wxString::Format( _( "Could not push to remote: %s" ),
git_error_last()->message ) );
KIGIT_COMMON::GetLastGitError() ) );
git_remote_disconnect( remote );
return PushResult::Error;
}