Skip to content

Commit

Permalink
Check git version correctly
Browse files Browse the repository at this point in the history
Sparse clone is supported after 2.25, not before. The comparison was
inverted.
  • Loading branch information
Sebastian-0 committed Jun 24, 2024
1 parent 5f8f062 commit c56c671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs_multirepo_plugin/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c56c671

Please sign in to comment.