libgit2 / libgit2/libgit2sharp
CanClone Failed to send request: the operation timed out
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 3.5k
- フォーク
- 925
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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);
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
LibGit2Sharp.Tests/CloneFixture.cs の CanClone(25 行目)から始め、次に Core/Ensure.cs(154 行目と 172 行目)および Proxy.Git_clone(276 行目)を通じて Repository.Clone を追跡します。Windows 10 での timeout と、CentOS 7.5 で成功した実行を比較します。Windows 固有の原因を特定して文書化するか、修正を検証できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, git
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100