diff -r 482728ca94c1 -r d7368933f4b0 hgext/git/gitlog.py --- 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: