-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.git/index.lock can be held when vscode is in background because of GitLens calls to git status
#163
Comments
and now that I look at things a bit more, I see that GitLens will call |
FYI -- I added the |
thank you!! |
Happening to me constantly in Windows with WSL remote mode and the latest version of VSCode and Gitlens. |
@wmakley Please open a new issue for this and attach logs and a clear description of what you were doing and the error that happened. Thanks! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to Reproduce:
git pull --rebase
)getStatusForRepo('/my/path/to/repo')
is called in GitLens output channelgetStatusForRepo
may be holding the lock.vscode's grabbing of the .git/index.lock has been the source of a number of issues filed against it, the main one of which is microsoft/vscode#11918
other extensions are now being identified that do the same thing, such as:
letmaik/vscode-git-tree-compare#24
The behavior of GitLens can be sidestepped with
gitlens.gitExplorer.includeWorkingTree": false
, but I think GitLens should either not callgit status
when vscode is in the background via the mechanism introduced in microsoft/vscode@475fb0e, or it should instruct git (well, future versions of git) to not grab the lock duringgit status
calls via the mechanism in microsoft/vscode#35513The text was updated successfully, but these errors were encountered: