libgit2 / libgit2/libgit2sharp
Repository Clone Throws No error message has been provided by the native library Exception
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
Am trying list down the Remote Branches in my application. am getting No error message has been provided by the native library while cloning. its only happening on the few repos.
var path = LibGit2Sharp.Repository.Clone(sourceUrl, workingDirectoryPath, cloneOptions);
if (!bare)
{
using (var repo = new LibGit2Sharp.Repository(path))
{
repo.Reset(ResetMode.Hard);
}
}
return path;
Trace
LibGit2Sharp.LibGit2SharpException: No error message has been provided by the native library

at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)

at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts)

at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options)

Reproduction steps
Am trying to clone huge repo with size around 750MB
Expected behavior
Clone the repository with out any error
Actual behavior
Should not throw "No error message has been provided by the native library Exception"
Version of LibGit2Sharp
0.26.0
Operating system(s) tested; .NET runtime tested
Local - WIndows Machine - its properly working
L2, L1 - Linux Docker Container - failing
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
Comienza reproduciendo el fallo mediante Repository.Clone en el entorno Linux Docker y compáralo con el caso funcional de Windows. Sigue la ruta indicada a través de Core.Ensure.HandleError y Proxy.git_clone; se considera terminado cuando el repositorio afectado se clona sin la native-library exception y el comportamiento de error resultante está cubierto.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp, git
- Área
- tooling
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 30/100