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
Boxiang Sun
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:
...
@@ -624,7 +624,7 @@ Style/PredicateName:
# branches, and conditions.
# branches, and conditions.
Metrics/AbcSize
:
Metrics/AbcSize
:
Enabled
:
true
Enabled
:
true
Max
:
5
5.25
Max
:
5
4.28
# This cop checks if the length of a block exceeds some maximum value.
# This cop checks if the length of a block exceeds some maximum value.
Metrics/BlockLength
:
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
...
@@ -137,10 +137,12 @@ module Backup
# restoring mismatching backups can lead to unexpected problems
# restoring mismatching backups can lead to unexpected problems
if
settings
[
:gitlab_version
]
!=
Gitlab
::
VERSION
if
settings
[
:gitlab_version
]
!=
Gitlab
::
VERSION
$progress
.
puts
'GitLab version mismatch:'
.
color
(
:red
)
$progress
.
puts
(
<<~
HEREDOC
.
color
(
:red
))
$progress
.
puts
" Your current GitLab version (
#{
Gitlab
::
VERSION
}
) differs from the GitLab version in the backup!"
.
color
(
:red
)
GitLab version mismatch:
$progress
.
puts
' Please switch to the following version and try again:'
.
color
(
:red
)
Your current GitLab version (
#{
Gitlab
::
VERSION
}
) differs from the GitLab version in the backup!
$progress
.
puts
" version:
#{
settings
[
:gitlab_version
]
}
"
.
color
(
:red
)
Please switch to the following version and try again:
version:
#{
settings
[
:gitlab_version
]
}
HEREDOC
$progress
.
puts
$progress
.
puts
$progress
.
puts
"Hint: git checkout v
#{
settings
[
:gitlab_version
]
}
"
$progress
.
puts
"Hint: git checkout v
#{
settings
[
:gitlab_version
]
}
"
exit
1
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