lib/sha1: use the git implementation of SHA-1