libgit2 / libgit2/libgit2sharp
Cannot stage a folder which contains a file with name ".git"
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
Reproduction steps
- Use LibGit2Sharp to work on a local git repository
- Create some random sub folders in that local repository folder
- Create in some of these subfolders a file with the name ".git"
- Try to stage all changes
Expected behavior
Like with e.g. Git for Windows
https://git-scm.com/download/win
The file gets just added to the repro without any exception
At least I would expect a better error description
Actual behavior
The LibGit2Sharp stage process crashes with an exception.
The exception contains the message "Invalid path"
It took a while till I figured out why this actually happens.
Version of LibGit2Sharp (release number or SHA1)
Nuget version of LibGit2Sharp: 0.26.0 (Current latest)
Nuget version of LibGit2Sharp.NativeBinaries: 2.0.267 (Newer version available but not compatible to newest LibGit2Sharp)
Operating system(s) tested; .NET runtime tested
Windows 10 Version 1903 - Build 18362.239
Project settings
The project in which I use the LibGit2Sharp is build with Visual Studio 2019.
The project uses the .Net Framework 4.7.2
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
Reproduire le staging sous Windows 10 avec LibGit2Sharp 0.26.0 et LibGit2Sharp.NativeBinaries 2.0.267 en utilisant un dépôt contenant un fichier nommé ".git" dans un sous-dossier. Comparer le comportement avec Git for Windows, puis retracer le chemin de staging qui produit l’exception "Invalid path". C’est terminé lorsque le fichier peut être ajouté au staging sans exception ou lorsque l’erreur identifie clairement la cause.
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é
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100