From 8d9a309f8279cd2967266c4826f44bebbbdec169 Mon Sep 17 00:00:00 2001 From: Sebastian Hjelm Date: Mon, 24 Jun 2024 15:35:43 +0200 Subject: [PATCH] Check git version correctly Sparse clone is supported after 2.25, not before. The comparison was inverted. --- mkdocs_multirepo_plugin/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs_multirepo_plugin/util.py b/mkdocs_multirepo_plugin/util.py index 6e84194..e722d81 100644 --- a/mkdocs_multirepo_plugin/util.py +++ b/mkdocs_multirepo_plugin/util.py @@ -103,7 +103,7 @@ def git_supports_sparse_clone() -> bool: """The sparse-checkout was added in 2.25.0 See RelNotes here: https://github.com/git/git/blob/9005149a4a77e2d3409c6127bf4fd1a0893c3495/Documentation/RelNotes/2.25.0.txt#L67 """ - return git_version() < Version(2, 25, 0) + return git_version() >= Version(2, 25, 0) async def execute_bash_script(