Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b1b64fec
Commit
b1b64fec
authored
Jan 31, 2018
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Geo-specific git version check
parent
6087548f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
43 deletions
+0
-43
ee/lib/system_check/geo/git_version_check.rb
ee/lib/system_check/geo/git_version_check.rb
+0
-12
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+0
-1
spec/ee/spec/lib/system_check/geo/git_version_check_spec.rb
spec/ee/spec/lib/system_check/geo/git_version_check_spec.rb
+0
-30
No files found.
ee/lib/system_check/geo/git_version_check.rb
deleted
100644 → 0
View file @
6087548f
module
SystemCheck
module
Geo
class
GitVersionCheck
<
::
SystemCheck
::
App
::
GitVersionCheck
set_name
->
{
"Git version >=
#{
self
.
required_version
}
?"
}
set_check_pass
->
{
"yes (
#{
self
.
current_version
}
)"
}
def
self
.
required_version
@required_version
||=
Gitlab
::
VersionInfo
.
new
(
2
,
9
,
5
)
end
end
end
end
lib/tasks/gitlab/check.rake
View file @
b1b64fec
...
...
@@ -451,7 +451,6 @@ namespace :gitlab do
checks
=
[
SystemCheck
::
Geo
::
LicenseCheck
,
SystemCheck
::
Geo
::
EnabledCheck
,
SystemCheck
::
Geo
::
GitVersionCheck
,
SystemCheck
::
Geo
::
GeoDatabaseConfiguredCheck
,
SystemCheck
::
Geo
::
DatabaseReplicationCheck
,
SystemCheck
::
Geo
::
HttpConnectionCheck
,
...
...
spec/ee/spec/lib/system_check/geo/git_version_check_spec.rb
deleted
100644 → 0
View file @
6087548f
require
'spec_helper'
describe
SystemCheck
::
Geo
::
GitVersionCheck
do
describe
'#check?'
do
subject
{
described_class
.
new
.
check?
}
where
(
:git_version
,
:result
)
do
[
[
'2.8.99'
,
false
],
[
'2.9.0'
,
false
],
[
'2.9.4'
,
false
],
[
'2.9.5'
,
true
],
[
'2.9.55'
,
true
],
[
'10.0.0'
,
true
]
]
end
with_them
do
before
do
stub_git_version
(
git_version
)
end
it
{
is_expected
.
to
eq
(
result
)
}
end
end
def
stub_git_version
(
version
)
allow
(
described_class
).
to
receive
(
:current_version
)
{
Gitlab
::
VersionInfo
.
parse
(
version
)
}
end
end
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