Skip to content

Commit

Permalink
Compatibility with old libgit2
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koefferlein committed Oct 25, 2023
1 parent 7346001 commit 2a41b13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tl/tl/tlGit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2a41b13

Please sign in to comment.