BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
c18564d2
Commit
c18564d2
authored
Jun 06, 2013
by
Sato Hiroyuki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix abort gitlab:app:check
When the file that pointed git bin_path in gitlab.yml dose'nt exist, bundle rake gitlab:app:check would be aborted. refs #4205
parent
e7bcbb95
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
version_info.rb
lib/gitlab/version_info.rb
+1
-1
check.rake
lib/tasks/gitlab/check.rake
+2
-2
No files found.
lib/gitlab/version_info.rb
View file @
c18564d2
...
...
@@ -5,7 +5,7 @@ module Gitlab
attr_reader
:major
,
:minor
,
:patch
def
self
.
parse
(
str
)
if
m
=
str
.
match
(
/(\d+)\.(\d+)\.(\d+)/
)
if
str
&&
m
=
str
.
match
(
/(\d+)\.(\d+)\.(\d+)/
)
VersionInfo
.
new
(
m
[
1
].
to_i
,
m
[
2
].
to_i
,
m
[
3
].
to_i
)
else
VersionInfo
.
new
...
...
lib/tasks/gitlab/check.rake
View file @
c18564d2
...
...
@@ -659,7 +659,7 @@ namespace :gitlab do
current_version
=
Gitlab
::
VersionInfo
.
parse
(
gitlab_shell_version
)
print
"GitLab Shell version >=
#{
required_version
}
? ... "
if
required_version
<=
current_version
if
current_version
.
valid?
&&
required_version
<=
current_version
puts
"OK (
#{
current_version
}
)"
.
green
else
puts
"FAIL. Please update gitlab-shell to
#{
required_version
}
from
#{
current_version
}
"
.
red
...
...
@@ -673,7 +673,7 @@ namespace :gitlab do
puts
"Your git bin path is
\"
#{
Gitlab
.
config
.
git
.
bin_path
}
\"
"
print
"Git version >=
#{
required_version
}
? ... "
if
required_version
<=
current_version
if
current_version
.
valid?
&&
required_version
<=
current_version
puts
"yes (
#{
current_version
}
)"
.
green
else
puts
"no"
.
red
...
...
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