#11904·dolt

git+https 远程: Windows 推送在 FETCH_HEAD 时失败,出现 'Permission denied' 错误;重复的获取分支,没有 --no-write-fetch-head 参数,每个 git 进程都有控制台

作者: davidcforbes创建于 2026年9月20日更新于 2026年9月30日
标签bugwindowsgood reprocustomer issue
  1. FetchRef 从不传递 --no-write-fetch-head,dolt 中没有任何代码读取 FETCH_HEAD

store/blobstore/internal/git/impl.go:393:

go
_, err := a.r.Run(ctx, RunOptions{}, "fetch", "--no-tags", "--refmap=", remote, refspec)

FETCH_HEAD 在此路径上是一个残留字段:fetch 使用了明确的 refspec 以及 --refmap=,然后在之后读取目标 ref。 在整个 dolt Go 源代码中搜索 FETCH_HEAD 返回零匹配 - 它从未在任何地方被读取。因此,抑制写入是功能上无效的。