d302e3eebeb5e3dd25811fae7035c2427739be91

Author
Marc Cornellà <marc.cornella@live.com>
Committer
GitHub <noreply@github.com>
Date

Message

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

Diff

 1diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
 2index ea199d09ad53a44b2d00c52ab821768632982628..b0b286af5bf9fb3da76b4baed5586b602f221eb5 100644
 3--- a/plugins/bundler/bundler.plugin.zsh
 4+++ b/plugins/bundler/bundler.plugin.zsh
 5@@ -55,7 +55,7 @@ done
 6 
 7 bundle_install() {
 8   if _bundler-installed && _within-bundled-project; then
 9-    local bundler_version=`bundle version | cut -d' ' -f3`
10+    local bundler_version=`bundle --version | cut -d' ' -f3`
11     if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
12       if [[ "$OSTYPE" = (darwin|freebsd)* ]]
13       then