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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
1833328b
Commit
1833328b
authored
Oct 22, 2017
by
Maxim Rydkin
Committed by
Robert Speicher
Oct 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decrease ABC threshold to 54.28
parent
d310a2d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
.rubocop.yml
.rubocop.yml
+1
-1
changelogs/unreleased/28202_decrease_abc_threshold_step5.yml
changelogs/unreleased/28202_decrease_abc_threshold_step5.yml
+5
-0
lib/backup/manager.rb
lib/backup/manager.rb
+6
-4
No files found.
.rubocop.yml
View file @
1833328b
...
...
@@ -624,7 +624,7 @@ Style/PredicateName:
# branches, and conditions.
Metrics/AbcSize
:
Enabled
:
true
Max
:
5
5.25
Max
:
5
4.28
# This cop checks if the length of a block exceeds some maximum value.
Metrics/BlockLength
:
...
...
changelogs/unreleased/28202_decrease_abc_threshold_step5.yml
0 → 100644
View file @
1833328b
---
title
:
Decrease ABC threshold to
54.28
merge_request
:
14920
author
:
Maxim Rydkin
type
:
other
lib/backup/manager.rb
View file @
1833328b
...
...
@@ -137,10 +137,12 @@ module Backup
# restoring mismatching backups can lead to unexpected problems
if
settings
[
:gitlab_version
]
!=
Gitlab
::
VERSION
$progress
.
puts
'GitLab version mismatch:'
.
color
(
:red
)
$progress
.
puts
" Your current GitLab version (
#{
Gitlab
::
VERSION
}
) differs from the GitLab version in the backup!"
.
color
(
:red
)
$progress
.
puts
' Please switch to the following version and try again:'
.
color
(
:red
)
$progress
.
puts
" version:
#{
settings
[
:gitlab_version
]
}
"
.
color
(
:red
)
$progress
.
puts
(
<<~
HEREDOC
.
color
(
:red
))
GitLab version mismatch:
Your current GitLab version (
#{
Gitlab
::
VERSION
}
) differs from the GitLab version in the backup!
Please switch to the following version and try again:
version:
#{
settings
[
:gitlab_version
]
}
HEREDOC
$progress
.
puts
$progress
.
puts
"Hint: git checkout v
#{
settings
[
:gitlab_version
]
}
"
exit
1
...
...
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