Repository Clone Throws No error message has been provided by the native library Exception
See original GitHub issueAm 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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:6 (1 by maintainers)
Top GitHub Comments
I have same issue
I have the same issue in Windows using 0.27.0-preview-0096 with a 5.8mb repository. I rolled back to 0.26.2 and it is working.