Update for deprecation of hex in pygit2 1.15.0 and above