git-remote-testpy: hash bytes explicitly
commit0846b0c905a885720138e8194fb0289f121b5da1
authorJohn Keeping <john@keeping.me.uk>
Sun, 20 Jan 2013 13:15:36 +0000 (20 13:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Jan 2013 03:32:35 +0000 (24 19:32 -0800)
treeff187058986a7e7d1bdac6af207e16f20c2f7922
parentcadbf5c7ed4ea60d2b776346586b224e774dca4b
git-remote-testpy: hash bytes explicitly

Under Python 3 'hasher.update(...)' must take a byte string and not a
unicode string.  Explicitly encode the argument to this method to hex
bytes so that we don't need to worry about failures to encode that might
occur if we chose a textual encoding.

This changes the directory used by git-remote-testpy for its git mirror
of the remote repository, but this tool should not have any serious
users as it is used primarily to test the Python remote helper
framework.

The use of encode() moves the required Python version forward to 2.0.

Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-remote-testpy.py