Git Cafe clone error should explain how to set up HTTPS authentication

未关闭 适合新手
#45,198 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
74/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
git, typescript
领域
desktop, devtools

调研方向

从链接行的 apps/server/src/sourceControl/SourceControlRepositoryService.ts 中 clone 实现开始,然后追踪 Git 错误如何呈现给用户。在禁用 prompt 的情况下重现 HTTPS clone 失败,并确认错误说明了 Cafe credential helper 的设置方法。完成标准是:指南能让用户配置 HTTPS 身份验证并成功重试 clone。

由索引模型根据 Issue 内容生成。

描述

via-triage

What happened
I tried to clone a private Git Cafe repo in T3 Code Desktop. The clone kept failing after I signed in with the Cafe CLI.

Diagnosis
The Cafe CLI could access the repository. Git needed a separate credential helper to use that login over HTTPS. T3 disables terminal prompts for background clones, so Git failed when it tried to ask for a username. The error should tell users how to configure the helper and then retry. Clone implementation

Steps to reproduce

  1. Sign into the Cafe CLI on a machine without a Git credential helper configured for git.cafe.
  2. Clone a private Git Cafe repository over HTTPS in T3 Code Desktop.
  3. Observe the failure and click Retry.

Version and environment
T3 Code Desktop 0.1.14-nightly.20261128.5399, macOS 26.5.1 on Apple silicon, Cafe CLI 0.14.0.

Evidence
T3’s clone trace and a separate Git check with prompts disabled produced the same error.

fatal: could not read Username for 'https://git.cafe': terminal prompts disabled

Related issues
The Forgejo report has the same Git error and concerns an SSH-only setup. This report concerns HTTPS setup with an existing Cafe login. T3 issue #37428

Fix applied
Ran cafe auth http setup --git-host git.cafe. Git could then read the repository without prompting, and Retry in T3 completed the clone.

Filed by
Codex (gpt-6.2-sol) via T3 triage.

主要语言
TypeScript
星标
24.8k
派生
6.4k
平均合并
59 分钟
30 天内合并 PR
613

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pingdotgg/t3code 的其他 Issue

查看 pingdotgg/t3code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。