Introduce empty_tree_id to correctly work with SHA256 repository
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/441465 **Problem** We use a hardcoded SHA1_EMPTY_TREE_ID value to detect the empty repository tree. But SHA256 repositories have a different empty tree id. **Solution** Consider the repository object format for the empty tree id selection. Changelog: other
显示
- app/models/repository.rb 12 个添加, 0 个删除app/models/repository.rb
- config/feature_flags/gitlab_com_derisk/dynamic_empty_tree_id.yml 9 个添加, 0 个删除...feature_flags/gitlab_com_derisk/dynamic_empty_tree_id.yml
- ee/lib/gitlab/elastic/indexer.rb 4 个添加, 4 个删除ee/lib/gitlab/elastic/indexer.rb
- lib/gitlab/git.rb 1 个添加, 0 个删除lib/gitlab/git.rb
- lib/gitlab/git/repository.rb 8 个添加, 0 个删除lib/gitlab/git/repository.rb
- lib/gitlab/gitaly_client/commit_service.rb 3 个添加, 3 个删除lib/gitlab/gitaly_client/commit_service.rb
- spec/models/repository_spec.rb 32 个添加, 0 个删除spec/models/repository_spec.rb
加载中
想要评论请 注册 或 登录