summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-19 04:59:10 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-19 04:59:10 -0300
commitddbd8702965e4ce86db71d63e4db8a8b16b2a2ed (patch)
treea05abfd361bb415ad1784d7c9dffcc2944065e8d
parent5e1ad5816373521fa7f46a7b3a8d7cdd92ed4f8c (diff)
downloadeeshow-ddbd8702965e4ce86db71d63e4db8a8b16b2a2ed.tar.gz
eeshow-ddbd8702965e4ce86db71d63e4db8a8b16b2a2ed.tar.bz2
eeshow-ddbd8702965e4ce86db71d63e4db8a8b16b2a2ed.zip
eeshow/file/git-util.c (git_init_once): use git_threads_init in old libgit2
Joerg has some ancient SuSE from 2014 where only libgit2 0.21 works ...
-rw-r--r--file/git-util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/file/git-util.c b/file/git-util.c
index 7abf5cf..5d604f5 100644
--- a/file/git-util.c
+++ b/file/git-util.c
@@ -77,7 +77,11 @@ void git_init_once(void)
static bool initialized = 0;
if (!initialized) {
+#if LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR < 22
+ git_threads_init();
+#else
git_libgit2_init();
+#endif
initialized = 1;
}
}