libgit2 / libgit2/libgit2sharp
LibGit2Sharp.LibGit2SharpException: request failed with status code: 502
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 3.5k
- フォーク
- 925
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I have a repo that i am trying to push to remote, The repo is about 1.5GB, I am able to push from the terminal. I am able to initialize and push a repo using the following code.
I am thrown the following error LibGit2Sharp.LibGit2SharpException: request failed with status code: 502
var destRepoPath = @"D:\DP\T\Test85";
var stageOptionsWithIncludeIgnore = new StageOptions { IncludeIgnored = true };
using (var repo = new Repository(destRepoPath))
{
Commands.Stage(repo, "*", stageOptionsWithIncludeIgnore);
var origin = repo.Network.Remotes["origin"];
var pushRefSpec = "refs/heads/master";
repo.Network.Push(origin, pushRefSpec,
new PushOptions
{
CredentialsProvider = (url, user, cred) => new UsernamePasswordCredentials { Username = "Username", Password = "Password" }
});
}
Version of LibGit2Sharp: 1.0.235
I use VS 2017 and C# 4.5
Appreciate any help, thanks
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
示されている Repository.Network.Push の呼び出しとその PushOptions から始め、1.5GB のリポジトリについて LibGit2Sharp による push とターミナルからの push を比較します。LibGit2Sharp 1.0.235 で 502 を再現できるか確認します。ライブラリ側またはリモート側の原因を特定し、次のアクションを文書化できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, git
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100