libgit2 / libgit2/libgit2sharp
Cannot stage a folder which contains a file with name ".git"
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- C#
- Estrelas
- 3.5k
- Forks
- 925
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Reproduzir o staging no Windows 10 com LibGit2Sharp 0.26.0 e LibGit2Sharp.NativeBinaries 2.0.267 usando um repositório que contenha um arquivo chamado ".git" em uma subpasta. Comparar o comportamento com o Git for Windows e, em seguida, rastrear o caminho de staging que produz a exceção "Invalid path". Considera-se concluído quando o arquivo puder ser colocado no staging sem uma exceção ou quando o erro identificar claramente a causa.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- csharp, git
- Domínio
- devtools
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100