libgit2 / libgit2/libgit2sharp
Cannot stage a folder which contains a file with name ".git"
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 3.5k
- フォーク
- 925
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Reproduction steps
- Use LibGit2Sharp to work on a local git repository
- Create some random sub folders in that local repository folder
- Create in some of these subfolders a file with the name ".git"
- Try to stage all changes
Expected behavior
Like with e.g. Git for Windows
https://git-scm.com/download/win
The file gets just added to the repro without any exception
At least I would expect a better error description
Actual behavior
The LibGit2Sharp stage process crashes with an exception.
The exception contains the message "Invalid path"
It took a while till I figured out why this actually happens.
Version of LibGit2Sharp (release number or SHA1)
Nuget version of LibGit2Sharp: 0.26.0 (Current latest)
Nuget version of LibGit2Sharp.NativeBinaries: 2.0.267 (Newer version available but not compatible to newest LibGit2Sharp)
Operating system(s) tested; .NET runtime tested
Windows 10 Version 1903 - Build 18362.239
Project settings
The project in which I use the LibGit2Sharp is build with Visual Studio 2019.
The project uses the .Net Framework 4.7.2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
サブフォルダーに ".git" という名前のファイルを含むリポジトリを使用して、LibGit2Sharp 0.26.0 および LibGit2Sharp.NativeBinaries 2.0.267 で Windows 10 上の staging を再現する。Git for Windows との動作を比較し、その後、"Invalid path" 例外を発生させる staging パスを追跡する。ファイルを例外なしで staging できるか、またはエラーが原因を明確に示せれば完了とする。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, git
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100