Work around libgit2 API change for supporting older platforms

This commit is contained in:
Jon Evans 2023-12-10 23:08:31 -05:00
parent 8a474879c5
commit 3c2922f993
1 changed files with 5 additions and 1 deletions

View File

@ -436,7 +436,11 @@ extern "C" int update_cb( const char* aRefname, const git_oid* aFirst, const git
git_oid_tostr( b_str, cstring_len, aSecond );
#if ( LIBGIT2_VER_MAJOR >= 1 ) || ( LIBGIT2_VER_MINOR >= 99 )
if( !git_oid_is_zero( aFirst ) )
#else
if( !git_oid_iszero( aFirst ) )
#endif
{
git_oid_tostr( a_str, cstring_len, aFirst );
status = wxString::Format( _( "* [updated] %s..%s %s" ), a_str, b_str, aRefname );
@ -539,4 +543,4 @@ extern "C" int credentials_cb( git_cred** aOut, const char* aUrl, const char* aU
}
return GIT_OK;
};
};