libgit2 / libgit2/libgit2sharp

Push produce no errors but is not working if the local repo has .github folder

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

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

主要言語
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
  1. Create a new local repo
  2. Add a .github/workflows/ci.yml file
  3. Commit
  4. Attempt to push to a GitHub remote (with or without authentication)
Observed Behavior
  • repo.Network.Push(...) does not throw
  • Remote is unchanged
  • If .github is 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 LibGit2Sharp and .NET 6+
  • Changing .github to any other folder name works
Environment
  • LibGit2Sharp version: 0.31.0
  • OS: Windows

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

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

はじめの一歩

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

調査の方向性

.github/workflows/ci.yml を含む新しいリポジトリで問題を再現し、続いて GitHub のリモートに対する repo.Network.Push(...) の動作を追跡します。push によってリモートが更新されるのか、それとも例外が報告されるのかを確認し、.github の名前を変更すると結果が変わるか検証します。

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

評価

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

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

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