🐛 fix(spx): GITEA_TOKEN 只发给 tea 登录过的 host,origin 不在 tea 里时直接报错
This commit is contained in:
1 parent
e6d086d821
commit
9c7c9d8636
6 files changed
+43
-25
No files matched your search
+1
-1
@@ -60,7 +60,7 @@
|
||||
cd cli && make install # 编译到 bin/spx 并安装到 ~/.local/bin/(这个目录要在 PATH 里)
|
||||
```
|
||||
|
||||
`spx` 按当前目录 git origin 的 host 选仓库:`github.com` 走 GitHub,凭据取 `gh auth token`;其余走 Gitea,凭据取 tea 配置里 host 匹配的 login,没有时回退环境变量 `GITEA_TOKEN`(tea 把 token 存在系统钥匙串里时就要设它)。
|
||||
`spx` 按当前目录 git origin 的 host 选仓库:`github.com` 走 GitHub,凭据取 `gh auth token`;其余走 Gitea,凭据取 tea 配置里 host 匹配的 login,没有就报错,要先 `tea login add` 这个 host;login 里没存 token 时(tea 把 token 存在系统钥匙串里)用环境变量 `GITEA_TOKEN` 补上,`GITEA_TOKEN` 不会发给 tea 没登录过的 host。
|
||||
|
||||
| 命令 | 作用 |
|
||||
|---|---|
|
||||
|
||||
Reference in new issue
Block a user