libgit2 / libgit2/libgit2sharp
Push produce no errors but is not working if the local repo has .github folder
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 3.5k
- Forks
- 925
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere das Problem mit einem neuen Repository, das .github/workflows/ci.yml enthält, und verfolge anschließend das Verhalten von repo.Network.Push(...) gegenüber einem GitHub-Remote. Bestätige, ob der Push das Remote aktualisiert oder eine Ausnahme meldet, und überprüfe, ob das Umbenennen von .github das Ergebnis verändert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp, git
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100