libgit2 / libgit2/libgit2sharp

The set filemode is incorrect

オープン
#1,953 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
C#
スター
3.5k
フォーク
925
PR マージ指標
30日以内にマージされた PR はありません

説明

Reproduction steps

Azure DevOps

  1. 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

  2. Create file "test1.sh" in folder "folder1", create PR to main and complete it

  3. 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

  4. 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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

git ls-files --stagefolder2 への移動、git update-index --chmod=+x を使用して Azure DevOps のシナリオを再現します。次に、説明されている commit と push の一連の処理において、LibGit2Sharp がファイルモードをどのように扱うかを追跡します。対象ファイルについて、検証パイプラインがファイルモード 100644 ではなく 100755 を報告すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, git
領域
devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。