summaryrefslogtreecommitdiff
path: root/diffcore-delta.c
diff options
context:
space:
mode:
authorThomas Gummerer <t.gummerer@gmail.com>2013-05-22 07:40:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-22 17:14:01 (GMT)
commitd0583da838afbc5e039b9f0cbbb9b1fb3aa1f1ae (patch)
treefbbb27588b9d393b965546561765f5592b184431 /diffcore-delta.c
parent92758dd2a2de94c90c0697ef0e8174c3543a47f9 (diff)
downloadgit-d0583da838afbc5e039b9f0cbbb9b1fb3aa1f1ae.zip
git-d0583da838afbc5e039b9f0cbbb9b1fb3aa1f1ae.tar.gz
git-d0583da838afbc5e039b9f0cbbb9b1fb3aa1f1ae.tar.bz2
prompt: fix show upstream with svn and zsh
Currently the __git_ps1 git prompt gives the following error with a repository converted by git-svn, when used with zsh: __git_ps1_show_upstream:19: bad pattern: svn_remote[ __git_ps1_show_upstream:45: bad substitution To reproduce the problem, the __git_ps1_show_upstream function can be executed in a repository converted with git-svn. Both those errors are triggered by spaces after the '['. Zsh also doesn't support initializing an array with `local var=(...)`. This triggers the following error: __git_ps1_show_upstream:41: bad pattern: svn_upstream=(commit Use local -a var=(...) instead to make is compatible. This was introduced by 6d158cba (bash completion: Support "divergence from upstream" messages in __git_ps1), when the script was for bash only. Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Acked-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-delta.c')
0 files changed, 0 insertions, 0 deletions