Support of Git SHA-256

Git SHA-256 is getting traction, e.g. GitLab is now supporting it (https://about.gitlab.com/blog/2023/08/28/sha256-support-in-gitaly/).
We will have to analyze and implement its support.
For example checkout.py:
image