hgext/git/gitlog.py
changeset 52632 d7368933f4b0
parent 52629 7d2fc79a3e5a
child 52633 86920d1f7632
--- a/hgext/git/gitlog.py	Wed Jan 08 22:52:01 2025 -0500
+++ b/hgext/git/gitlog.py	Sat Jan 04 09:38:51 2025 -0500
@@ -303,8 +303,8 @@
             candidate = nodehex[:attempt]
             matches = int(
                 self._db.execute(
-                    'SELECT COUNT(*) FROM changelog WHERE node LIKE ?',
-                    (pycompat.sysstr(candidate + b'%'),),
+                    'SELECT COUNT(*) FROM changelog WHERE node GLOB ?',
+                    (pycompat.sysstr(candidate + b'*'),),
                 ).fetchone()[0]
             )
             if matches == 1: