libgit2 / libgit2/libgit2sharp
The set filemode is incorrect
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 3.5k
- フォーク
- 925
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Reproduction steps
Azure DevOps
-
Create YAML Pipeline just for monitoring filemode (show all files with filemode, script:
git ls-files --stage) and create build validation policy for main branch -
Create file "test1.sh" in folder "folder1", create PR to main and complete it
-
On new branch make changes, push it, hard reset to previous commit, create "folder2", move "test1.sh" to this folder, change filemode to 100755 (
git update-index --chmod=+x file_name), force push, create PR to main and complete it -
Switch to previous commit (before changing folder and file mode), push any changes, create PR to main and check build validation pipeline logs on the PR
Expected behavior
File mode is 100755 (new)
Actual behavior
File mode is 100644 (old)
Version of LibGit2Sharp (release number or SHA1)
14.0.29222.1
Operating system(s) tested; .NET runtime tested
Windows 10, .NET 4.8
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
git ls-files --stage、folder2 への移動、git update-index --chmod=+x を使用して Azure DevOps のシナリオを再現します。次に、説明されている commit と push の一連の処理において、LibGit2Sharp がファイルモードをどのように扱うかを追跡します。対象ファイルについて、検証パイプラインがファイルモード 100644 ではなく 100755 を報告すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, git
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100