diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-04 04:12:54 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-04 04:13:11 +0000 |
commit | 9ae2283682467205fb95091a85e9a6d8cb9492c8 (patch) | |
tree | 5e203018ae925d6d03fa02265e3fd597646fbaf0 | |
parent | Fix up test gitErrorMessage (diff) | |
download | gentoobrowse-api-0.10.0.4.tar.bz2 gentoobrowse-api-0.10.0.4.tar.xz gentoobrowse-api-0.10.0.4.zip |
Git error deprecation fix needs to be version specificgentoobrowse-api-0.10.0.4
-rw-r--r-- | gentoobrowse-api/service/utils/git.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gentoobrowse-api/service/utils/git.cpp b/gentoobrowse-api/service/utils/git.cpp index fa0e191..5dc1a98 100644 --- a/gentoobrowse-api/service/utils/git.cpp +++ b/gentoobrowse-api/service/utils/git.cpp @@ -9,7 +9,11 @@ namespace Gentoo { void throwError(void * const func, int err) { +#if LIBGIT2_VER_MINOR >= 28 const git_error * e = git_error_last(); +#else + const git_error * e = giterr_last(); +#endif char ** fn = backtrace_symbols(&func, 1); assert(fn); assert(*fn); |