libgit2 / libgit2/libgit2sharp
Push produce no errors but is not working if the local repo has .github folder
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
- 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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- 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