浏览代码

bundler: fix bundle version git error

It seems that `bundle version` calls git to know the commit sha, while `bundle --version` only shows the version of bundler.

Fixes #6988
Marc Cornellà 5 年之前
父节点
当前提交
d302e3eebe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/bundler/bundler.plugin.zsh

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

@@ -55,7 +55,7 @@ done
 
 bundle_install() {
   if _bundler-installed && _within-bundled-project; then
-    local bundler_version=`bundle version | cut -d' ' -f3`
+    local bundler_version=`bundle --version | cut -d' ' -f3`
     if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
       if [[ "$OSTYPE" = (darwin|freebsd)* ]]
       then