[git] Git repo list gets refreshed too often and scans all of the filesystem #10415
Labels
git
issues related to git
proposal
feature proposals (potential future features)
🤔 needs more info
issues that require more info from the author
Bug Description:
I am using theia in a cloud environment and remote filestores are sometimes mounted within the theia workspace. In this setting the find_git_repositories is called very often (I believe for most filesystem events) and scans all of the directories in the workspace reccursively.
I believe there are two issues that we might want or not want to address :
I think a hotfix for me will be to make sure git repo discovery happens only once at initialization of the workspace. (people can reload the whole workspace if they added a repo).
It looks to me that propagating exclusion will need some work at the level of https://github.com/Axosoft/find-git-repositories
To me the easiest way around this issue would be to add one explicit button to refresh git repos and call repo discovery only at init and when this button is pressed. Though scanning explicitly ignored dirs is still bad behavior.
Steps to Reproduce:
I can just use debugging on my filesystem mount to log all filesystem accesses. In a general setup, I am not sure how to intercept fs calls.
Related :
It looks to me that the natural suspect was not the culprit this time
Axosoft/nsfw#134
Axosoft/nsfw#124
Additional Information
The text was updated successfully, but these errors were encountered: