From 3b6b783db797b593119756821c04ac64b66b7ffa Mon Sep 17 00:00:00 2001
From: "Lukas K." <lu@0x83.eu>
Date: Sun, 20 Oct 2024 21:41:00 +0200
Subject: [PATCH] make it build with libgit 1.8.2

Index: src/pool-prj-mgr/pool-mgr/pool_git_box.cpp
--- src/pool-prj-mgr/pool-mgr/pool_git_box.cpp.orig
+++ src/pool-prj-mgr/pool-mgr/pool_git_box.cpp
@@ -631,7 +631,7 @@ void PoolGitBox::handle_pr()
             git_signature_default(&signature.ptr, repo);
 
             git_oid new_commit_oid;
-#if (LIBGIT2_VER_MAJOR == 1) && (LIBGIT2_VER_MINOR == 8)
+#if (LIBGIT2_VER_MAJOR == 1) && (LIBGIT2_VER_MINOR == 8) && (LIBGIT2_VER_REVISION < 2)
             std::array<git_commit *, 2> parents;
 #else
             std::array<const git_commit *, 2> parents;
