git status not showing on repo with limited file permissions
faethon opened this issue · 0 comments
powerlevel10k doesn't show git status on repo's that have files in them with root/root permissions.
I noticed that when cloning and building lnav (https://github.com/tstack/lnav) that the git status on the prompt disappears. When cloning and building the particular repo, the git status is visible on the prompt. However after a 'sudo make install' in the particular repo the git status disappears from the prompt.
When diving into this, I noticed that 'git diff' (after 'sudo make install') was giving permission errors. Apparently that particular repo creates root/root (user/group) files in the repo, to which the regular user does not have permissions, hence I guess also gitstatusd bails out and cannot provide the prompt anymore. It maybe dubious to create root/root files for the install process inside the repo, but alas...
It would be nice to have the prompt showing that there is a git repo, but that an error (permissions) blocks giving proper information.