-
Notifications
You must be signed in to change notification settings - Fork 876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid version 0 on git_proxy_options #1769
Comments
|
after upgraded libgit2 v0.27.9 (OK) to v1.0.0 (KO) cmake results: What did I miss ? |
|
Same problem in version libgit2-1.0.1, with project for Linux. bool GitWizard::cloneRepo(const QString &url, const QString &dir)
{
git_repository *tempRepo = nullptr;
git_checkout_options checkout_opts = GIT_CHECKOUT_OPTIONS_INIT;
git_clone_options clone_opts = GIT_CLONE_OPTIONS_INIT;
checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE;
clone_opts.checkout_opts = checkout_opts;
clone_opts.fetch_opts.callbacks.credentials = cred_acquire_cb;
int error = git_clone(&tempRepo, url.toUtf8().constData(),
dir.toUtf8().constData(), &clone_opts);
if (!checkForError(error, QString("Clone repository %1 to %2").arg(url, dir))) {
git_repository_free(tempRepo);
return true;
}
return false;
} |
|
This should be fixed in the latest releases. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction steps
Try to run a netcore 2.1 app on Ubuntu
Expected behavior
It to clone a repository like normal
Actual behavior
This happens
Version of LibGit2Sharp (release number or SHA1)
0.26.2 running under netcore 2.1
Operating system(s) tested: Ubuntu Server 19.10
Other notes
I am not running a proxy server, and there has been no direct proxy configuration on my system, or in my Clone task
The text was updated successfully, but these errors were encountered: