about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2022-01-17 22:58:13 +0100
committerdana <dana@dana.is>2022-02-12 10:29:55 -0600
commit2b66ed35b014b3d93f37a67951c2bd00916c9370 (patch)
tree6378b7d100a164f6a08460b880bf62b073c8897d /Functions
parentf7fa575a593c27fb2540aca64ef790340d60addf (diff)
downloadzsh-2b66ed35b014b3d93f37a67951c2bd00916c9370.tar.gz
zsh-2b66ed35b014b3d93f37a67951c2bd00916c9370.tar.xz
zsh-2b66ed35b014b3d93f37a67951c2bd00916c9370.zip
security/82: VCS_Info: Fix typo in hook_com[base-name_orig] assignment
Tweaked per discussion in security/90, security/91

(cherry picked from commit b34d33e3b3c5ae30e8315111f07634c1e7507531)
Diffstat (limited to 'Functions')
-rw-r--r--Functions/VCS_Info/VCS_INFO_formats2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_formats b/Functions/VCS_Info/VCS_INFO_formats
index e0e1dc738..daf169f26 100644
--- a/Functions/VCS_Info/VCS_INFO_formats
+++ b/Functions/VCS_Info/VCS_INFO_formats
@@ -28,7 +28,7 @@ hook_com=(
     vcs_orig      "${vcs}"
 )
 hook_com[base-name]="${${hook_com[base]}:t}"
-hook_com[base-name_orig]="${hook_com[base_name]}"
+hook_com[base-name_orig]="${hook_com[base-name]}"
 hook_com[subdir]="$(VCS_INFO_reposub ${hook_com[base]})"
 hook_com[subdir_orig]="${hook_com[subdir]}"