summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-04 04:12:54 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-04 04:13:11 +0000
commit9ae2283682467205fb95091a85e9a6d8cb9492c8 (patch)
tree5e203018ae925d6d03fa02265e3fd597646fbaf0
parentFix up test gitErrorMessage (diff)
downloadgentoobrowse-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.cpp4
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);