Skip to content

Commit

Permalink
Fixed for libgit2 1.8 (#920)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
How2PlayGithub authored May 6, 2024
1 parent 126ae03 commit 97b43cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Git2/Exception.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include "../Rustify.hpp"

#include <git2/deprecated.h>
#include <git2/errors.h>
#include <git2/version.h>

Expand All @@ -25,7 +26,7 @@ Exception::Exception() {
if (const git_error* error = git_error_last(); error != nullptr) {
this->msg += error->message;
this->cat = static_cast<git_error_t>(error->klass);
git_error_clear();
giterr_clear();
}
}

Expand Down

0 comments on commit 97b43cb

Please sign in to comment.