libgit2 / libgit2/libgit2sharp
Working Directory for a branch seems to be incorrect.
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C#
- Estrellas
- 3.5k
- Forks
- 925
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
No se nombra ningún archivo fuente ni ninguna prueba. Reproduce primero el escenario de work-tree indicado y, después, sigue Repos.Branches y el valor de Working Directory de la rama para compararlo con la ruta del Repository. Se considera terminado cuando una rama asociada a un work tree informa de la ruta de ese work tree en lugar de la ruta del repositorio, con cobertura de regresión si el proyecto tiene una ubicación de pruebas aplicable.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp, git
- Área
- devtools
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100