Browse Source

fix(cli): get branch and tags from OMZ folder in `omz changelog` completion

Marc Cornellà 2 years ago
parent
commit
5f99eb5afd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/cli.zsh

+ 1 - 1
lib/cli.zsh

@@ -35,7 +35,7 @@ function _omz {
   elif (( CURRENT == 3 )); then
     case "$words[2]" in
       changelog) local -a refs
-        refs=("${(@f)$(command git for-each-ref --format="%(refname:short):%(subject)" refs/heads refs/tags)}")
+        refs=("${(@f)$(command git -C "$ZSH" for-each-ref --format="%(refname:short):%(subject)" refs/heads refs/tags)}")
         _describe 'command' refs ;;
       plugin) subcmds=(
         'disable:Disable plugin(s)'