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
c4a2633b
Commit
c4a2633b
authored
Oct 09, 2017
by
Toon Claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts in git_user_default_ssh_config_check.rb
parent
b245f67c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
15 deletions
+0
-15
lib/system_check/app/git_user_default_ssh_config_check.rb
lib/system_check/app/git_user_default_ssh_config_check.rb
+0
-7
spec/lib/system_check/app/git_user_default_ssh_config_check_spec.rb
...ystem_check/app/git_user_default_ssh_config_check_spec.rb
+0
-8
No files found.
lib/system_check/app/git_user_default_ssh_config_check.rb
View file @
c4a2633b
...
...
@@ -11,17 +11,10 @@ module SystemCheck
]
.
freeze
set_name
'Git user has default SSH configuration?'
<<<<<<<
HEAD
set_skip_reason
'skipped (Geo secondary, or git user is not present / configured)'
def
skip?
Gitlab
::
Geo
.
secondary?
||
!
home_dir
||
!
File
.
directory?
(
home_dir
)
=======
set_skip_reason
'skipped (GitLab read-only, or git user is not present / configured)'
def
skip?
Gitlab
::
Database
.
read_only?
||
!
home_dir
||
!
File
.
directory?
(
home_dir
)
>>>>>>>
ce
-
com
/
master
end
def
check?
...
...
spec/lib/system_check/app/git_user_default_ssh_config_check_spec.rb
View file @
c4a2633b
...
...
@@ -40,18 +40,10 @@ describe SystemCheck::App::GitUserDefaultSSHConfigCheck do
it
{
is_expected
.
to
eq
(
expected_result
)
}
end
<<<<<<<
HEAD
# EE-only
it
'skips Geo secondaries'
do
stub_user
stub_home_dir
allow
(
Gitlab
::
Geo
).
to
receive
(
:secondary?
).
and_return
(
true
)
=======
it
'skips GitLab read-only instances'
do
stub_user
stub_home_dir
allow
(
Gitlab
::
Database
).
to
receive
(
:read_only?
).
and_return
(
true
)
>>>>>>>
ce
-
com
/
master
is_expected
.
to
be_truthy
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