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鈥檒l 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.

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.

None yet

1 participant