LibGit2Sharp The Index is locked - Error

JoeLiBuDa picture JoeLiBuDa · Apr 22, 2014 · Viewed 8.7k times · Source

Sometimes I try to read and write to a Git repository at the same time. But afterwards i get the following error message when i try to commit files:

An error was raised by libgit2. Category = Index (LockedFile). The index is locked. This might be due to a concurrrent or crashed process.

The commit is done as expected, why do i get this error message? How do i get rid of it?

(If a LibGit2Sharp developer sees this: There is a spelling misstake in the error message: concuRRRent.) :D

Answer

Smyrnian picture Smyrnian · Jul 7, 2014

Dropbox can interfere with git operations too. I pause dropbox syncing before any git sync.