libgit2 / libgit2/libgit2sharp
Exception During Rebase: No error message has been provided by the native library
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
I've seen this happen a couple times out of a hundred, so it is difficult to reproduce. When it has happened, I've rebased successfully from the command-line without any conflicts; then when I re-run this it still fails.
Stack Trace
LibGit2Sharp.LibGit2SharpException: No error message has been provided by the native library
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
at LibGit2Sharp.Core.Proxy.git_rebase_init(RepositoryHandle repo, AnnotatedCommitHandle branch, AnnotatedCommitHandle upstream, AnnotatedCommitHandle onto, GitRebaseOptions options)
at LibGit2Sharp.Rebase.Start(Branch branch, Branch upstream, Branch onto, Identity committer, RebaseOptions options)
Reproduction steps
var rebaseResult = repository.Rebase.Start(featureBranch, masterBranch, null, _getIdentity(repository), new RebaseOptions());
Expected behavior
A rebaseResult.Status
Actual behavior
An exception
Version of LibGit2Sharp (release number or SHA1)
0.26.0
Operating system(s) tested; .NET runtime tested
Windows 10
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
Inizia dalla chiamata a Rebase.Start nella riproduzione e seguila attraverso LibGit2Sharp.Rebase.Start, Core.Proxy.git_rebase_init e Core.Ensure.HandleError. Riproduci il problema su Windows 10 con LibGit2Sharp 0.26.0 e gli argomenti di branch forniti, quindi confronta l’errore nativo con il rebaseResult.Status previsto. Il lavoro è completo quando il caso intermittente è spiegato e gestito senza l’eccezione per l’errore vuoto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, git
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100