libgit2 / libgit2/libgit2sharp
The set filemode is incorrect
还没有人认领这个 Issue。
- 主要语言
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 git ls-files --stage、移动到 folder2 以及 git update-index --chmod=+x 重现 Azure DevOps 场景。然后跟踪 LibGit2Sharp 如何处理所述 commit 和 push 序列中的文件模式。对于受影响的文件,当验证流水线报告文件模式为 100755 而不是 100644 时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, git
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100