Microsoft/vscode

Git - VSCode locks git index in AFP repo

Open

#95 810 ouverte le 22 avr. 2020

Voir sur GitHub
 (7 commentaires) (2 réactions) (1 assigné)TypeScript (10 221 forks)batch import
buggithelp wantedmacos

Métriques du dépôt

Stars
 (74 848 stars)
Métriques de merge PR
 (Merge moyen 11h 43m) (1 000 PRs mergées en 30 j)

Description

  • 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.

Guide contributeur