Browse Source

git: fix version check

Marc Cornellà 4 years ago
parent
commit
c549387745
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/git/git.plugin.zsh

+ 1 - 1
plugins/git/git.plugin.zsh

@@ -1,6 +1,6 @@
 # Git version checking
 # Git version checking
 autoload -Uz is-at-least
 autoload -Uz is-at-least
-git_version="${(As: :)$(git version 2>/dev/null)[3]}"
+git_version="${${(As: :)$(git version 2>/dev/null)}[3]}"
 
 
 #
 #
 # Functions
 # Functions