wordpress icon indicating copy to clipboard operation
wordpress copied to clipboard

Automatic git status in vagrant ssh is very slow

Open TeemuSuoranta opened this issue 4 years ago • 2 comments

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?

Screenshot 2021-07-27 at 15 36 39

TeemuSuoranta avatar Jul 27 '21 12:07 TeemuSuoranta

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

TeemuSuoranta avatar Jul 30 '21 05:07 TeemuSuoranta

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.

ypcs avatar Oct 13 '21 06:10 ypcs