Microsoft/vscode

Git - VSCode locks git index in AFP repo

开放

#95,810 创建于 2020年4月22日

 (7 条评论) (2 个反应) (1 位负责人)TypeScript (39,847 个派生)batch import
buggithelp wantedmacos

仓库指标

星标
 (184,936 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

  • VSCode Version: 1.43.2
  • OS Version: Darwin 18.7.0 Darwin Kernel Version 18.7.0: Mon Feb 10 21:08:45 PST 2020; root:xnu-4903.278.28~1/RELEASE_X86_64 x86_64 i386

Steps to Reproduce:

  1. Open workspace (in this case a LaTeX project)
  2. Attempt to run git add from a separate terminal window.

Result:

fatal: Unable to write new index file

Solution:

Close VSCode workspace.

VSCode appears to be keeping .git/refs/remotes/origin/master open. lsof doesn't indicate any locks but git still refuses to update the index until I close the VSCode window.

贡献者指南