Compatibility with old libgit2

This commit is contained in:
Matthias Koefferlein 2023-10-25 23:08:20 +02:00
parent 73460016c0
commit 2a41b13efd
1 changed files with 4 additions and 0 deletions

View File

@ -99,7 +99,11 @@ GitObject::~GitObject ()
}
static int
#if LIBGIT2_VER_MAJOR >= 1
fetch_progress (const git_indexer_progress *stats, void *payload)
#else
fetch_progress (const git_transfer_progress *stats, void *payload)
#endif
{
tl::RelativeProgress *progress = reinterpret_cast<tl::RelativeProgress *> (payload);