libgit2 / libgit2/libgit2sharp
sha256 not yet supported
未關閉
還沒有人認領這個 Issue。
- 主要語言
- C#
- 星號
- 3.5k
- 分支
- 925
- PR 合併指標
- 30 天內沒有已合併 PR
描述
When running new Repository(dir) on a sha256 enabled repo, it fails with a LibGit2SharpException stating unknown object format 'sha256'.
see: https://git-scm.com/docs/hash-function-transition
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 154
at LibGit2Sharp.Repository..ctor(String path, RepositoryOptions options, RepositoryRequiredParameter requiredParameter) in /_/LibGit2Sharp/Repository.cs:line 35
At first glance it looks like libgit2 doesn't support this yet.
Version used: LibGit2Sharp 0.31.0, using LibGit2Sharp.NativeBinaries 2.0.323
To be fair: we only have one repo using sha256 for compatibility testing - and while git cli works great, 3rd-party tooling is still abysmal.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 Repository.cs:35 中的 Repository 建構函式開始,檢查 Ensure.cs:154 如何呈現原生錯誤。首先查看連結的雜湊函式遷移文件和 libgit2 支援狀態;當開啟啟用 sha256 的儲存庫不再失敗,並且已為此情況建立相容性涵蓋時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp, git
- 領域
- tooling
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100