libgit2 / libgit2/libgit2sharp
Working Directory for a branch seems to be incorrect.
Personne n'a encore pris cette issue.
- Langage dominant
- C#
- Étoiles
- 3.5k
- Forks
- 925
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Aucun fichier source ni aucun test n’est indiqué. Reproduisez d’abord le scénario de work-tree indiqué, puis suivez Repos.Branches et la valeur de Working Directory de la branche afin de la comparer au chemin du Repository. Le travail est terminé lorsqu’une branche associée à un work tree indique le chemin de ce work tree plutôt que celui du référentiel, avec une couverture de régression si le projet dispose d’un emplacement de test approprié.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp, git
- Domaine
- devtools
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 38/100