libgit2 / libgit2/libgit2sharp
Push produce no errors but is not working if the local repo has .github folder
オープン
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 3.5k
- フォーク
- 925
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Summary
When using libgit2sharp to push an initial commit that includes a .github folder (with valid contents), the push fails silently — no error is thrown, and the remote is not updated. If the folder is renamed (e.g., to github), the push succeeds.
Steps to Reproduce
- Create a new local repo
- Add a
.github/workflows/ci.ymlfile - Commit
- Attempt to push to a GitHub remote (with or without authentication)
Observed Behavior
repo.Network.Push(...)does not throw- Remote is unchanged
- If
.githubis renamed, push succeeds as expected
Expected Behavior
Push should either:
- Succeed and update the remote, or
- Throw an exception if push fails
Notes
- Using latest
LibGit2Sharpand .NET 6+ - Changing
.githubto any other folder name works
Environment
- LibGit2Sharp version: 0.31.0
- OS: Windows
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
.github/workflows/ci.yml を含む新しいリポジトリで問題を再現し、続いて GitHub のリモートに対する repo.Network.Push(...) の動作を追跡します。push によってリモートが更新されるのか、それとも例外が報告されるのかを確認し、.github の名前を変更すると結果が変わるか検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, git
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100