aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-08-17 13:43:12 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-08-17 13:43:12 -0400
commitc34910937d77a19e9bf85fe9a58a4c51b3dfe0e8 (patch)
treec31e28a0f2b83eabb46d90bd8c46d0335ea6566e
parent78b0952447ee068db8695d688362986945416a62 (diff)
downloadlite-xl-plugin-manager-c34910937d77a19e9bf85fe9a58a4c51b3dfe0e8.tar.gz
lite-xl-plugin-manager-c34910937d77a19e9bf85fe9a58a4c51b3dfe0e8.zip
Added in futureproofing.
-rw-r--r--src/lpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 855eb4d..6fbc076 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -444,7 +444,7 @@ static int lpm_fetch(lua_State* L) {
git_fetch_options fetch_opts = GIT_FETCH_OPTIONS_INIT;
fetch_opts.download_tags = GIT_REMOTE_DOWNLOAD_TAGS_ALL;
fetch_opts.callbacks.payload = L;
- #if LIBGIT2_VER_MAJOR >= 1 && LIBGIT2_VER_MINOR >= 7
+ #if (LIBGIT2_VER_MAJOR >= 1 && LIBGIT2_VER_MINOR >= 7) || LIBGIT2_VER_MAJOR > 1
fetch_opts.depth = 1;
#endif
if (no_verify_ssl)