在 Windows Git Bash (MSYS2) 环境下,gitlink-cli api GET /v1/owner/repo 的路径参数会被 MSYS2 自动改写为类似 C:/Program Files/Git/v1/owner/repo 的 Windows 路径(MSYS2 把 /v1 当成 Unix 路径转换为 Git 安装目录),导致 API 调用 404。 修复:在 runAPI 中检测路径首部是否为盘符(^[A-Za-z]:/), 若是则按常见 API 前缀(/v1/ /v2/ /api/ /users/ /projects/) 定位并还原原始 API 路径。 影响所有 Windows Git Bash 用户,跨平台兼容性修复。 |
||
|---|---|---|
| .. | ||
| api | ||
| auth | ||
| cmdutil | ||
| config | ||
| doctor | ||
| cmd_test.go | ||
| root.go | ||
| root_test.go | ||