From 97b43cb52fda635c75746df27664187fb2f00d7a Mon Sep 17 00:00:00 2001 From: How2PlayGithub <134759103+How2PlayGithub@users.noreply.github.com> Date: Mon, 6 May 2024 23:36:38 +1200 Subject: [PATCH] Fixed for libgit2 1.8 (#920) Fixed for libgit2:1.8.0-2 ``` The error functions and enumeration values have been renamed for consistency. The giterr_ functions and values prefix have been renamed to be prefixed with git_error_; similarly, the GITERR_ constants have been renamed to be prefixed with GIT_ERROR_. The old enumerations and macros will be retained for backward compatibility for the foreseeable future. ``` https://github.com/libgit2/libgit2/blob/main/docs/changelog.md --- src/Git2/Exception.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Git2/Exception.cc b/src/Git2/Exception.cc index 8a4e0c29f..6cf0ffd41 100644 --- a/src/Git2/Exception.cc +++ b/src/Git2/Exception.cc @@ -2,6 +2,7 @@ #include "../Rustify.hpp" +#include #include #include @@ -25,7 +26,7 @@ Exception::Exception() { if (const git_error* error = git_error_last(); error != nullptr) { this->msg += error->message; this->cat = static_cast(error->klass); - git_error_clear(); + giterr_clear(); } }