about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2022-01-25 08:23:27 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2022-01-25 10:11:58 +0000
commit8460d75869fcddaaa2a6beed9b4d78c60a9fed19 (patch)
tree2955d98d2768ca177700e676ec104d09b4e584d1 /Functions
parentaf0f497247150f55963e908097d04e543da55a4b (diff)
downloadzsh-8460d75869fcddaaa2a6beed9b4d78c60a9fed19.tar.gz
zsh-8460d75869fcddaaa2a6beed9b4d78c60a9fed19.tar.xz
zsh-8460d75869fcddaaa2a6beed9b4d78c60a9fed19.zip
49709: vcs_info hg: Keep $HGPLAIN set for hooks if it had been set outside vcs_info
If someone does 'HGPLAIN=1 vcs_info', any vcs_info hooks should be called with
HGPLAIN set.  Declaring it 'local' broke that.
Diffstat (limited to 'Functions')
-rw-r--r--Functions/VCS_Info/Backends/VCS_INFO_get_data_hg1
1 files changed, 0 insertions, 1 deletions
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg b/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg
index 2806aee1d..b123e2270 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg
+++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_hg
@@ -56,7 +56,6 @@ if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" get-revision ; then
         zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" \
             "check-for-changes" || hgid_args+=( -r. )
 
-        local HGPLAIN
         HGPLAIN=1 ${vcs_comm[cmd]} ${(z)hgid_args} 2> /dev/null \
             | read -r r_csetid r_lrev
     fi