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 don't throw up when not on some branch #302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

spruce
Copy link

@spruce spruce commented Jul 31, 2018

Hi,
thanks for the best dotfiles yet 👍 .
Now to my "problem". Currently when being in a detached HEAD state the prompt throws up and always shows a warning that

fatal: ref HEAD is not a symbolic ref

and shows an incomplete prompt e.g.:

🔌  ⚡️in .dotfiles/ on

This PR fixes that and displays:

🔌  ⚡️  in .dotfiles/ on detached HEAD

Maybe the message could be tweak a little (maybe show commit sha) but is in my opinion way better than throwing an error.

spiderbites added a commit to spiderbites/dotfiles that referenced this pull request Jul 26, 2024
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

Successfully merging this pull request may close these issues.

1 participant