libgit2 / libgit2/libgit2sharp
CanClone Failed to send request: the operation timed out
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C#
- Star
- 3.5k
- Fork
- 925
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I downloaded the code to run the clone method in the unit test natively, and an exception occurred
Failed to send request: the operation timed out
In LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in F:\myTrialProjects\netcore\LibGit2Sharp\LibGit2Sharp\Core\Ensure.cs: line 154
In LibGit2Sharp.Core.Ensure.ZeroResult(Int32 result) in F:\myTrialProjects\netcore\LibGit2Sharp\LibGit2Sharp\Core\Ensure.cs: line 172
In LibGit2Sharp.Core.Proxy.Git_clone(url String, the String workdir, GitCloneOptions & opts) in F:\myTrialProjects\netcore\LibGit2Sharp\LibGit2Sharp\Core\Proxy in cs: line 276
In LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options) in F:\myTrialProjects\netcore\LibGit2Sharp\LibGit2Sharp\Repository of cs: line 793
In LibGit2Sharp.Repository.Clone (String sourceUrl, String workdirPath) in F:\myTrialProjects\netcore\LibGit2Sharp\LibGit2Sharp\Repository of cs: line 727
In LibGit2Sharp.Tests.CloneFixture.CanClone(String url) in F:\myTrialProjects\netcore\LibGit2Sharp\LibGit2Sharp Tests\CloneFixture cs: in line 25
My computer os is win10 64bit.
I am looking forward to your help and Suggestions so that I can solve this problem.
The code I ran on my centos 7.5 virtual machine was successful,I installed libgit2 and dotnet build console ,Why doesn't Windows work?
var co = new CloneOptions();
CredentialsHandler credHandler = (_url, _user, _cred) => new UsernamePasswordCredentials { Username = "030586", Password = "12345678" };
co.CredentialsProvider = credHandler;
Repository.Clone("http://git.xxxx.com/030586/aaa-test", @"aaatest",co);
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với LibGit2Sharp.Tests/CloneFixture.cs tại CanClone (dòng 25), sau đó lần theo Repository.Clone qua Core/Ensure.cs (các dòng 154 và 172) và Proxy.Git_clone (dòng 276). So sánh timeout trên Windows 10 với lần chạy thành công trên CentOS 7.5; được coi là hoàn tất khi xác định và ghi lại nguyên nhân đặc thù của Windows hoặc xác minh được bản sửa lỗi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp, git
- Lĩnh vực
- tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100