From 6bcc10e083a050d27af480b0e81510d1d1527b15 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Thu, 17 Aug 2023 13:44:56 -0400 Subject: Made things clearer. --- src/lpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lpm.c b/src/lpm.c index 6fbc076..ed5cfd2 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) || LIBGIT2_VER_MAJOR > 1 + #if (LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR >= 7) || LIBGIT2_VER_MAJOR > 1 fetch_opts.depth = 1; #endif if (no_verify_ssl) -- cgit v1.2.3