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
Prompt git status wrong after git hook #2519
Comments
It's unlikely that I'll find time to debug this. Sorry. |
If you are experiencing the same issue, then the same "resolution" applies. However, your comment has no indication that you are indeed experiencing the same issue. It could be #2232 (comment), which has a simple workaround. |
@Tyler-Keith-Thompson I don't have this issue with my Git Hooks. Can you share your Git Hook responsible for formatting? |
Nothing quite so simple I’m afraid. I didn’t screenshot it well but I did document that if I simply run to be fair, this hook looks like it’s trying to be awfully clever: https://github.com/hallettj/git-format-staged |
Oh, yes, it's not because of what I suspected then. |
Hello! Long-time user, first time issue opener here :)
My auto-formatter seems to be messing with my prompt. I've got it set up with a git hook so it formats when I push and what I'm seeing is after the push the prompt gets tricked into thinking there are changes.
The good news is there's an easy fix, if I run
git status
the prompt gets the up-to-date information and quits showing me there are changes when there aren't.The text was updated successfully, but these errors were encountered: