diff options
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | Completion/Unix/Command/_git | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,8 @@ 2026-04-05 dana <dana@dana.is> + * Bao Trinh: github #156: Completion/Unix/Command/_git: fix + --git-dir and --work-tree options when used with parameters + * Christopher Bock: github #153: Completion/Unix/Command/_zfs: _zfs update zpool-prop's diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index f54d846d3..e9f72799c 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -8964,8 +8964,8 @@ _git() { ;; (option-or-argument) curcontext=${curcontext%:*:*}:git-$words[1]: - (( $+opt_args[--git-dir] )) && local -x GIT_DIR=${(Q)${~opt_args[--git-dir]}} - (( $+opt_args[--work-tree] )) && local -x GIT_WORK_TREE=${(Q)${~opt_args[--work-tree]}} + (( $+opt_args[--git-dir] )) && local -x GIT_DIR=${(eQ)${~opt_args[--git-dir]}} + (( $+opt_args[--work-tree] )) && local -x GIT_WORK_TREE=${(eQ)${~opt_args[--work-tree]}} if ! _call_function ret _git-$words[1]; then if [[ $words[1] = \!* ]]; then words[1]=${words[1]##\!} |
