py3: don’t encode node.bin() argument
It accepts str and bytes.
--- a/hgext/git/gitutil.py Tue May 31 01:06:29 2022 +0200
+++ b/hgext/git/gitutil.py Tue May 31 01:16:41 2022 +0200
@@ -44,8 +44,6 @@
def fromgitnode(n):
"""Opposite of togitnode."""
assert len(n) == 40
- if pycompat.ispy3:
- return bin(n.encode('ascii'))
return bin(n)