[BUG] Git panel shows 'not a git repository' even when .git exists #1938
lz425-code
started this conversation in
Show Your Plugins!
Replies: 1 comment
|
Git panel 显示非 git 仓库但 .git 存在——better-sidebar 的仓库检测可能没找对 .git 位置(工作区子目录 vs 根)。 先确认 .git 在哪个层级,或换 dsh 自带的 git 工具对比。这类插件层误判第 5 章 Git 面板案例有类似处理。 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
在 dsh-better-sidebar 的“源代码管理”(Git) 面板中,始终显示“当前目录不是 git 仓库”,但通过终端
git status检查,该目录下.git文件夹存在且 Git 仓库状态正常。Steps to Reproduce
C:\Users\某某某某\.dsh\profiles\web执行git init并完成首次提交。dsh web。Expected Behavior
“源代码管理”面板应正确识别当前工作区为 Git 仓库,并显示分支、变更等信息。
Actual Behavior
“源代码管理”面板提示“当前目录不是 git 仓库”。
Environment
Additional Context
好吧,小白的错误,见笑了
All reactions