diff --git a/src/pool-prj-mgr/pool-mgr/pool_git_box.cpp b/src/pool-prj-mgr/pool-mgr/pool_git_box.cpp index 5df06c9e..3b12946c 100644 --- a/src/pool-prj-mgr/pool-mgr/pool_git_box.cpp +++ b/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 parents; #else std::array parents; diff --git a/src/pool-prj-mgr/pool-mgr/pool_remote_box.cpp b/src/pool-prj-mgr/pool-mgr/pool_remote_box.cpp index 2868f7db..44852b0f 100644 --- a/src/pool-prj-mgr/pool-mgr/pool_remote_box.cpp +++ b/src/pool-prj-mgr/pool-mgr/pool_remote_box.cpp @@ -1137,7 +1137,7 @@ void PoolRemoteBox::create_pr_thread() autofree_ptr parent_commit(git_commit_free); git_commit_lookup(&parent_commit.ptr, repo, &parent_oid); -#if (LIBGIT2_VER_MAJOR == 1) && (LIBGIT2_VER_MINOR == 8) +#if (LIBGIT2_VER_MAJOR == 1) && (LIBGIT2_VER_MINOR == 8) && (LIBGIT2_VER_REVISION < 2) git_commit *parent_commit_p = parent_commit.ptr; #else const git_commit *parent_commit_p = parent_commit.ptr; @@ -1287,7 +1287,7 @@ void PoolRemoteBox::update_pr_thread() throw std::runtime_error("error getting default signature"); } -#if (LIBGIT2_VER_MAJOR == 1) && (LIBGIT2_VER_MINOR == 8) +#if (LIBGIT2_VER_MAJOR == 1) && (LIBGIT2_VER_MINOR == 8) && (LIBGIT2_VER_REVISION < 2) git_commit *parent_commit_p = latest_commit.ptr; #else const git_commit *parent_commit_p = latest_commit.ptr;