Giuseppe Bilotta <giuseppe.bilotta@xxxxxxxxx> wrote: > Its check is more robust than a config check for core.bare Trivially-Acked-by: Shawn O. Pearce <spearce@xxxxxxxxxxx> > diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash > index ba13c49..0c8bb53 100755 > --- a/contrib/completion/git-completion.bash > +++ b/contrib/completion/git-completion.bash > @@ -132,7 +132,7 @@ __git_ps1 () > local c > > if [ "true" = "$(git rev-parse --is-inside-git-dir 2>/dev/null)" ]; then > - if [ "true" = "$(git config --bool core.bare 2>/dev/null)" ]; then > + if [ "true" = "$(git rev-parse --is-bare-repository 2>/dev/null)" ]; then > c="BARE:" > else > b="GIT_DIR!" > -- > 1.6.3.1.137.g29aa > -- Shawn. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html