libgit2 / libgit2/libgit2sharp

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

Aperta
#2,150 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
C#
Stelle
3.5k
Fork
925
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riproduci il problema con un nuovo repository contenente .github/workflows/ci.yml, quindi traccia il comportamento di repo.Network.Push(...) rispetto a un remote GitHub. Conferma se il push aggiorna il remote o segnala un'eccezione e verifica se rinominare .github cambia il risultato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp, git
Ambito
devtools
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.