更新失败,提示如下
Closed this issue · 4 comments
使用git pull
Your configuration specifies to merge with the ref 'refs/heads/master'
from the remote, but no such ref was fetched.
使用#全部更新
[YzBot][11:22:29.246][ERRO] [更新][updateAll]
[YzBot][11:22:29.246][ERRO] Error: Command failed: git -C ./plugins/windoge-plug
in/ rev-parse --short HEAD
fatal: Needed a single revision
at checkExecSyncError (node:child_process:861:11)
at execSync (node:child_process:932:15)
at update.getcommitId (file:///C:/Users/Administrator/Desktop/Yunzai-Bot/plu
gins/other/update.js:151:26)
at update.runUpdate (file:///C:/Users/Administrator/Desktop/Yunzai-Bot/plugi
ns/other/update.js:114:35)
at updateAll (file:///C:/Users/Administrator/Desktop/Yunzai-Bot/plugins/othe
r/update.js:214:18)
at async PluginsLoader.deal (file:///C:/Users/Administrator/Desktop/Yunzai-B
ot/lib/plugins/loader.js:251:52)
此状态已持续半个月
Your configuration specifies to merge with the ref 'refs/heads/master' from the remote, but no such ref was fetched.
分支名称不对,可以切换到插件目录下用git checkout main
切换到主分支,再进行更新
你是指在windoge插件目录中执行该命令吗?我不太能确定是不是我的git配置有问题,但它提示了下面的内容
error: pathspec 'main' did not match any file(s) known to git
删除插件重新在yunzai根目录拉取,会提示:您似乎克隆了一个空的储存库
多半是git配置问题,抱歉我无法解决
好的,我会尝试重新配置git,感谢您的帮助!