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 branch info disappears after submitting a github pull request #1820
Comments
You can try enabling logs with |
thanks. I checked out a branch that breaks it, set that debugging variable, spawned a new zsh and this looks to be the relevant portion of the log:
|
What's the branch name and what is it tracking? |
Edit: if it's relevant,
|
So, your branch is tracking a remote branch from a remote that doesn't exist. Naturally, it would be nice if gitstatusd didn't error out in this case. I should fix that. In the meantime you can work around this problem by adding "github" remote or removing the tracking branch. |
Hmm, I wonder if there is deeper magic at work here. I added a
which suggests the remote is If it helps, my workflow is this:
And it's that final step that does... something to the state of the branch, to confuse gitstatusd. |
The error message in gistatusd says that the name of the remote branch doesn't start with the name of the remote. This checks out: "github/add-screen-serial" does not start with "upstream". Again, this is something I should fix but it may take a very long time before I do. So I highly recommend finding a workaround. |
Thanks for this, I was able to quickly diagnose an issue in my gitconfig that was breaking my git status segment! |
Hello!
I have p10k set up to show git information in my prompt:
I've noticed that after I use the official GitHub command line tool to submit a pull request for a branch, the git part of the prompt disappears:
Is there something I can do/run to collect some useful information about why this might be happening?
The text was updated successfully, but these errors were encountered: