Working Directory for a branch seems to be incorrect.
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 38/100
Rechercherichtung
Es ist keine Quelldatei oder kein Test angegeben. Reproduziere zunächst das aufgeführte Work-Tree-Szenario und verfolge dann Repos.Branches sowie den Wert von Working Directory des Branches, um ihn mit dem Repository-Pfad zu vergleichen. Erledigt ist die Aufgabe, wenn ein Branch, der einem Work Tree zugeordnet ist, den Pfad dieses Work Trees statt des Repository-Pfads meldet, mit Regressionstests, falls das Projekt einen passenden Testort hat.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I think there is an error in the Working Directory for a branch, particularly if a branch is associated with a WorkTree.
It always shows the same path as the Repository. However if a branch is associated with a work tree, it's working directory is probably not the same as the repository.
- Create a work tree and an associated branch.
- Create the Repository in code (pointing to the Repositories path).
- Examine all the branches by iterating through Repos.Branches.
- The working directory of the new branch is pointing to the working directory of the Repository, not the path to the work tree.
Version of LibGit2Sharp (release number or SHA1)
<PackageReference Include="LibGit2Sharp" Version="0.26.2" />
Operating system(s) tested; .NET runtime tested
VS 2022, Win 11
net6.0-windows10.0.19041.0
I know how to get the correct path if you think it is a bug.
- Vorherrschende Sprache
- C#
- Sterne
- 3.5k
- Forks
- 925
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus libgit2/libgit2sharp
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 52/100
libgit2/libgit2sharp#2193 · 2 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 38/100
libgit2/libgit2sharp#2192 · 1 Kommentar ·
-
Website is down Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 20/100
libgit2/libgit2sharp#2191 · 2 Reaktionen ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
libgit2/libgit2sharp#2189 · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
libgit2/libgit2sharp#2187 · 2 Kommentare ·
Alle Issues in libgit2/libgit2sharp
Ähnliche Issues
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 75/100
sillsdev/languageforge-lexbox#2665 ·
-
C: Syntax
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
bug documentation frontend
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
azurenoops/spin_agent#975 ·
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
SubtitleEdit/subtitleedit#15108 · 1 Kommentar ·