question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Repository Clone Throws No error message has been provided by the native library Exception

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
nkochnevcommented, Jan 12, 2021

I have same issue

1reaction
dbuksbaumcommented, Jan 2, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No error message has been provided by the native library
I was able to clone git repository by using the command: git -c http.sslVerify=false clone https://example.com/path/to/git.
Read more >
No error message has been provided by the native library ...
When it has happened, I've rebased successfully from the command-line without any conflicts; then when I re-run this it still fails. Stack Trace....
Read more >
No error message has been provided by the native library ...
I was able to clone git repository by using the command: git -c http.sslVerify=false clone https://example.com/path/to/git.
Read more >
EGit / JGit » Transport Error :: Egit :: clone repository fail
Egit :: clone repository takes my credentials and immediately throws the Transport Error (3 possible probs, url, sslVerify, etc).
Read more >
Unable to clone from the given repository - Help
The way I replicated it is that when I first cloned your repo, I got a pop-up: No UiPath Studio Project was found...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found