Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#2,150 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
csharp, git
Bereich
devtools

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.

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
  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
Vorherrschende Sprache
C#
Sterne
3.5k
Forks
925
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus libgit2/libgit2sharp

Alle Issues in libgit2/libgit2sharp

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.