Skip to content

Commit

Permalink
Fixing for non git directories again. *Sigh*
Browse files Browse the repository at this point in the history
  • Loading branch information
m14t committed Mar 20, 2015
1 parent 88f2b5f commit b03461f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ color_bold_yellow="\[\e[33;1m\]"
function getGitPromptMessage {
PROMPT=""
MODIFIED=""
BRANCH="$(git symbolic-ref HEAD 2>/dev/null)" ||
BRANCH="(unnamed branch)" # detached HEAD
BRANCH="$(git symbolic-ref HEAD 2>/dev/null)"
BRANCH=${BRANCH##refs/heads/}

if [ -n "$BRANCH" ]; then
Expand Down

0 comments on commit b03461f

Please sign in to comment.