Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
a3a6b918
Commit
a3a6b918
authored
Mar 26, 2013
by
Robby Russell
Browse files
Merge pull request #1616 from sxeraverx/master
pipe git version check error to /dev/null (for when git doesn't exist)
parents
d3d3f0e8
3db22634
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/git.zsh
View file @
a3a6b918
...
@@ -112,7 +112,7 @@ function git_compare_version() {
...
@@ -112,7 +112,7 @@ function git_compare_version() {
local
INPUT_GIT_VERSION
=
$1
;
local
INPUT_GIT_VERSION
=
$1
;
local
INSTALLED_GIT_VERSION
local
INSTALLED_GIT_VERSION
INPUT_GIT_VERSION
=(
${
(s/./)INPUT_GIT_VERSION
}
)
;
INPUT_GIT_VERSION
=(
${
(s/./)INPUT_GIT_VERSION
}
)
;
INSTALLED_GIT_VERSION
=(
$(
git
--version
)
)
;
INSTALLED_GIT_VERSION
=(
$(
git
--version
2>/dev/null
)
)
;
INSTALLED_GIT_VERSION
=(
${
(s/./)INSTALLED_GIT_VERSION[3]
}
)
;
INSTALLED_GIT_VERSION
=(
${
(s/./)INSTALLED_GIT_VERSION[3]
}
)
;
for
i
in
{
1..3
}
;
do
for
i
in
{
1..3
}
;
do
...
...
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