libgit2 / libgit2/libgit2sharp
Error pushing to github using 0.26.2
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 3.5k
- 派生
- 925
- PR 合并指标
- 30 天内没有已合并 PR
描述
I'm using 0.26.2 to push files to github, and it gives me request failed with status code 500, and I'm using personal access token of github for authentication.
following is how I create push option
return new PushOptions()
{
CredentialsProvider = CreateCredentialsProvider(),
OnPushStatusError = new PushStatusErrorHandler(error =>
{
throw new NonFastForwardException($"{error.Message} at {error.Reference}");
})
};
and following is how I create Credentials Provider:
return new CredentialsHandler((url, userNameFromUrl, types) =>
{
return new UsernamePasswordCredentials()
{
Username = credential.UserName,
Password = credential.Password ?? string.Empty,
};
});
can somebody help me to find out what's wrong
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定文件或测试。首先使用 libgit2sharp 0.26.2 以及所示的 PushOptions 和 CredentialsHandler 重现 push,然后检查完整的失败详情和身份验证行为。识别出可重现的原因,并记录或验证 HTTP 500 响应的修复方案,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, git, github
- 领域
- authentication, devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100