summaryrefslogtreecommitdiff
path: root/plugins/bundler/bundler.plugin.zsh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2018-07-18 23:34:38 +0200
committerGitHub <noreply@github.com>2018-07-18 23:34:38 +0200
commitd302e3eebeb5e3dd25811fae7035c2427739be91 (patch)
treeeb08508557fec573d28cd0bc0abe751ae2b30975 /plugins/bundler/bundler.plugin.zsh
parentd3e3b2dd0d7c7574d2a47c0d3a0d79583c58b2b8 (diff)
downloadzsh-d302e3eebeb5e3dd25811fae7035c2427739be91.tar.gz
zsh-d302e3eebeb5e3dd25811fae7035c2427739be91.tar.bz2
zsh-d302e3eebeb5e3dd25811fae7035c2427739be91.zip
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
Diffstat (limited to 'plugins/bundler/bundler.plugin.zsh')
-rw-r--r--plugins/bundler/bundler.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
index ea199d09a..b0b286af5 100644
--- a/plugins/bundler/bundler.plugin.zsh
+++ b/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