Automatic git status in vagrant ssh is very slow
In newer box versions, moving to /data/wordpress/ and further (via cd) a neat git status is triggered like so:
DEVELOPMENT [@sitename:/data/wordpress] master(+657/-422)+* ±
In most cases this is fine and good but at least with Mac Big Sur + Vagrant this is very slow performant in some projects. Maybe it's because they have a lot more files to be crawled than regular projects.
By simply going to /data/wordpress/ might take 1-2 minutes and take CPU temperature in worst cases 95 °C. Is there any easy way to disable this for some project either via config.yml or bash settings?
This is probably linked with this issue https://github.com/Seravo/wordpress/issues/171
I can confirm that operating outside /data/wordpress or even referncing this in /data/wordpress while current directory is outside it is fast. I would investigate hooks for the git status thing but I cannot find reference to it in .bashrc
Hi. Thanks for the feedback.
We will look at this, at very minimum we should consider disabling the status if git execution takes too long.