Re: [PATCH] git-prompt.sh: don't assume the shell expands the value of PS1

2014-05-20 Thread Junio C Hamano
Richard Hansen writes: > Not all shells subject the prompt string to parameter expansion. Test > whether the shell will expand the value of PS1, and use the result to > control whether raw ref names are included directly in PS1. > > This fixes a regression introduced in commit 8976500 ("git-prom

[PATCH] git-prompt.sh: don't assume the shell expands the value of PS1

2014-05-19 Thread Richard Hansen
Not all shells subject the prompt string to parameter expansion. Test whether the shell will expand the value of PS1, and use the result to control whether raw ref names are included directly in PS1. This fixes a regression introduced in commit 8976500 ("git-prompt.sh: don't put unsanitized branc