Reading Branch.UpstreamBranchCanonicalName throws an exception
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
Inizia riproducendo l’eccezione mentre enumeri repo.Branches tramite il costruttore LibGit2.Automation.BranchInfo, concentrandoti sull’accesso a Branch.UpstreamBranchCanonicalName mostrato nel report. Verifica il comportamento per i branch che attivano l’errore di nome null e conferma che l’enumerazione dei branch venga completata senza l’eccezione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
LibGit2 0.24.0. In C#, when I access the UpstreamBranchCanonicalName property on Branch I get this exception:
Message : Value cannot be null.
Parameter name: name
ParamName : name
Data : {}
InnerException :
TargetSite : System.String get_UpstreamBranchCanonicalName()
StackTrace : at LibGit2Sharp.Branch.get_UpstreamBranchCanonicalName()
at LibGit2.Automation.BranchInfo..ctor(Branch branch)
HelpLink :
Source : LibGit2Sharp
HResult : -2147467261
I am enumerating the branches in PowerShell:
$repo.Branches |
ForEach-Object { New-Object LibGit2.Automation.BranchInfo $_ }
The constructor for my LibGit2.Automation.BranchInfo object is where Branch throws an exception:
public BranchInfo(Branch branch)
{
Name = branch.FriendlyName;
CanonicalName = branch.CanonicalName;
UpstreamBranchCanonicalName = branch.UpstreamBranchCanonicalName;
IsRemote = branch.IsRemote;
IsTracking = branch.IsTracking;
IsCurrentRepositoryHead = branch.IsCurrentRepositoryHead;
Tip = new CommitInfo(branch.Tip);
}
- Lingua principale
- C#
- Stelle
- 3.5k
- Fork
- 925
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
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.
Altre issue di libgit2/libgit2sharp
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
libgit2/libgit2sharp#2193 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
libgit2/libgit2sharp#2192 · 1 commento ·
-
Website is down Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
libgit2/libgit2sharp#2191 · 2 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
libgit2/libgit2sharp#2189 · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
libgit2/libgit2sharp#2187 · 2 commenti ·
Tutte le issue di libgit2/libgit2sharp
Issue simili
-
type/automation type/tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
t/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
area:auth FE mvp P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
klasolsson81/jobbliggaren#1788 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
OrchardCMS/OrchardCore#19919 · 2 commenti ·
-
app-frontend: parked task URL throws 'Unknown task type' once the process moves on to a signing task Apertaarea/process kind/bug squad/flyt squad/utforming
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Altinn/altinn-studio#20570 ·