switch from Digest::SHA1 to Digest::SHA on HEAD