Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
d302e3ee
Unverified
Commit
d302e3ee
authored
Jul 18, 2018
by
Marc Cornellà
Committed by
GitHub
Jul 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
parent
d3e3b2dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bundler.plugin.zsh
plugins/bundler/bundler.plugin.zsh
+1
-1
No files found.
plugins/bundler/bundler.plugin.zsh
View file @
d302e3ee
...
@@ -55,7 +55,7 @@ done
...
@@ -55,7 +55,7 @@ done
bundle_install
()
{
bundle_install
()
{
if
_bundler-installed
&&
_within-bundled-project
;
then
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
[[
$bundler_version
>
'1.4.0'
||
$bundler_version
=
'1.4.0'
]]
;
then
if
[[
"
$OSTYPE
"
=
(
darwin|freebsd
)
*
]]
if
[[
"
$OSTYPE
"
=
(
darwin|freebsd
)
*
]]
then
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment