diff --git a/tests/hghave.py b/tests/hghave.py
index 05f8b0b6f6ee57ed865e0ad73df761d382c4be87_dGVzdHMvaGdoYXZlLnB5..39a539c9b789600cbddb5f8fa4b4ad2a7aceff0a_dGVzdHMvaGdoYXZlLnB5 100755
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -378,12 +378,6 @@
     return getgitversion() >= (int(major), int(minor))
 
 
-@checkvers("gitbefore",
-           "git client (with ext::sh support) version < %s", (2.24,))
-def has_git_less(v):
-    major, minor = v.split('.')[0:2]
-    return getgitversion() < (int(major), int(minor))
-
 @check("docutils", "Docutils text processing library")
 def has_docutils():
     try: