From 539c70645928f67a3a5c0ace2345c775d9a701ac Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 1 Jul 2020 11:25:43 +0200 Subject: [PATCH] Compatibility for libgit2 < 0.99. --- src/git.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/git.cpp b/src/git.cpp index f82b701..ed942cf 100644 --- a/src/git.cpp +++ b/src/git.cpp @@ -31,6 +31,10 @@ # if LIBGIT2_VER_MINOR < 28 # define git_error_last giterr_last # endif +# if LIBGIT2_VER_MINOR < 99 +# define git_credential_ssh_key_new git_cred_ssh_key_new +# define git_push_options_init git_push_init_options +# endif #endif namespace FediBlock::git