Make git use sha when branch name is missing. #1263

Merged
merged 1 commit into from Dec 2, 2012

Conversation

Projects
None yet
2 participants

tedv commented Jul 31, 2012

When git is in a headless state for some reason, none of the git prompt information shows up (except git_prompt_short_sha if you enabled it). This change uses the short sha tag of the current HEAD as a default if git symbolic-ref HEAD fails to get a branch name.

@ghost ghost referenced this pull request Aug 1, 2012

Closed

Git cleanup #1264

robbyrussell added a commit that referenced this pull request Dec 2, 2012

Merge pull request #1263 from tedv/headless-git
Make git use sha when branch name is missing.

@robbyrussell robbyrussell merged commit 9977afc into robbyrussell:master Dec 2, 2012

@tedv tedv deleted the tedv:headless-git branch Feb 18, 2014

w31 pushed a commit to w31/oh-my-zsh that referenced this pull request Apr 30, 2014

Merge pull request #1263 from tedv/headless-git
Make git use sha when branch name is missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment