-
Notifications
You must be signed in to change notification settings - Fork 588
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
inside .git folders Agnoster produces "fatal: this operation must be run in a work tree" #162
Comments
I just ran into the same issue. Surprisingly I never had seen it before. Did you find a solution? Is this really related to the agnoster-theme or is something else causing this, maybe? |
Oh wow, this issue is almost 3 years old :-) Since then I've stopped using Agnoster, and the details have vanished from my memory... however, as far as I remember, I wasn't able to fix it using the original Agnoster theme, but I made a fork of the code and fixed it just for me. The fork is here: https://github.com/rzarajczyk/agnoster-zsh-theme It should be either the line 96 of the original file
Or 155
Or both, I don't remember :-) |
Thanks. Maybe it is time to replace agnoster then as well. |
Just for documentation purposes: I dug around and it appears that the issue is not tied to agnoster, but more to zsh itself: spaceship-prompt/spaceship-prompt#821, which in the end leads to a similar solution as you proposed: zsh-users/zsh@bacad96 |
Hi,
When I'm inside .git directory (this special hidden dir in any git repo which store git-related data) the Agnoster produces
every time the command line is show. It is because Agnoster's git integration try to execute some git commands, like
git status
, in this repo - but it ends with this message produced to stderr.The text was updated successfully, but these errors were encountered: