Skip to content
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 status not showing on repo with limited file permissions #2759

Open
faethon opened this issue Sep 18, 2024 · 0 comments
Open

git status not showing on repo with limited file permissions #2759

faethon opened this issue Sep 18, 2024 · 0 comments

Comments

@faethon
Copy link

faethon commented Sep 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant