Blame 0001-plugins-git-Fix-compatibility-with-libgit2-0.99.x.patch

72c6688
From 582bf0281358437cc35d96d363f0af81a1b21068 Mon Sep 17 00:00:00 2001
72c6688
From: Igor Raits <i.gnatenko.brain@gmail.com>
72c6688
Date: Tue, 3 Mar 2020 13:17:31 +0100
72c6688
Subject: [PATCH] plugins/git: Fix compatibility with libgit2 0.99.x
72c6688
72c6688
Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
72c6688
---
72c6688
 src/plugins/git/daemon/ipc-git-repository-impl.c | 2 +-
72c6688
 1 file changed, 1 insertion(+), 1 deletion(-)
72c6688
72c6688
diff --git a/src/plugins/git/daemon/ipc-git-repository-impl.c b/src/plugins/git/daemon/ipc-git-repository-impl.c
72c6688
index abcca5476..f2631945d 100644
72c6688
--- a/src/plugins/git/daemon/ipc-git-repository-impl.c
72c6688
+++ b/src/plugins/git/daemon/ipc-git-repository-impl.c
72c6688
@@ -34,7 +34,7 @@
72c6688
 #include "ipc-git-types.h"
72c6688
 #include "ipc-git-util.h"
72c6688
 
72c6688
-#if LIBGIT2_SOVERSION >= 28
72c6688
+#if LIBGIT2_VER_MAJOR > 0 || (LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR >= 28)
72c6688
 G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC (git_buf, git_buf_dispose)
72c6688
 #else
72c6688
 G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC (git_buf, git_buf_free)
72c6688
-- 
72c6688
2.25.1
72c6688