]> git.ipfire.org Git - thirdparty/git.git/commit
git-prompt: change == to = for zsh's sake
authorDavid J. Malan <malan@harvard.edu>
Tue, 21 Jul 2020 00:15:31 +0000 (00:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Jul 2020 00:37:20 +0000 (17:37 -0700)
commite8882a87d9c479fd9d6e71a5840e949579304ab9
tree9882f445bfcc2ea6486052a72339ed7a68484750
parentafda36dbf3b4f5a489ab44c00d5210c1fa894a40
git-prompt: change == to = for zsh's sake

When using git-prompt.sh with zsh, __git_ps1 currently errs
when inside a repo with:

__git_ps1:96: = not found

Avoid using non-portable "==" that is only understood by bash
and not zsh. Change to "=" so that the prompt script becomes
usable with zsh again.

Signed-off-by: David J. Malan <malan@harvard.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-prompt.sh