Add support for indexing SHA256 repository
Background
Related to &10981 and gitlab!144494 (merged)
Gitaly supports creating SHA256 repositories. Zoekt indexing needs to support the longer object id (64 vs 40 length object SHA).
Proposal
- Detect from gitaly by using requesting ObjectFormat from Gitaly. Based on the response, the indexer can decide which empty tree id to use.
- For info, the SHA256 empty tree id is
6ef19b41225c5369f1c104d45d8d85efa9b057b53b14b4b9b939dd74decc5321
- Add tests that test for 64 length object SHA if a SHA256 repository is being used